model

package
v0.0.0-...-e8c23e0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 21, 2015 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type User

type User struct {
	ID         uint64 `db:"pk"`
	ScreenName string `db:"unique"`
	CryptoPass string
	Name       string
	Age        int
	Intro      string
	CreatedAt  time.Time
	UpdatedAt  time.Time
}

User is user DB table

func CreateUser

func CreateUser(screenName, cryptoPass, name, intro string, age int) User

CreateUser is user create

func GetUser

func GetUser(screenName string) User

GetUser is get user from screen name

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL