Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
AccountNotFound = errors.New("account not found")
)
Functions ¶
func CreateAccount ¶
Types ¶
type Account ¶
type Account struct { AccountID string `json:"-" bson:"account_id"` Username string `json:"username" bson:"username"` Password string `json:"-" bson:"-"` Hashword string `json:"-" bson:"password"` SessionID string `json:"-" bson:"session_id"` }
func CheckSession ¶
func LoadAccount ¶
func (Account) ClearSession ¶
func (Account) NewSession ¶
type TestStruct ¶
type TestStruct struct {
Name string
}
Click to show internal directories.
Click to hide internal directories.