Documentation ¶
Index ¶
- func Hash256(str string) string
- func MakeToken(username, password string) string
- func RandomString(n int) string
- type UserList
- func (Users *UserList) CreateUser(username, password string) string
- func (Users *UserList) CreateUserWithExtraColumns(username, password string, extra_columns map[string]interface{}) string
- func (Users *UserList) GetUserByToken(token string) map[string]interface{}
- func (Users *UserList) GetUserByUsername(username string) map[string]interface{}
- func (Users *UserList) PasswordMatch(username, decoded_password string) bool
- func (Users *UserList) SaveData() error
- func (Users *UserList) UserExists(username string) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RandomString ¶
Types ¶
type UserList ¶
type UserList struct { Path string Data []interface{} }
func (*UserList) CreateUser ¶
func (*UserList) CreateUserWithExtraColumns ¶
func (*UserList) GetUserByToken ¶
func (*UserList) GetUserByUsername ¶
func (*UserList) PasswordMatch ¶
func (*UserList) UserExists ¶
Click to show internal directories.
Click to hide internal directories.