Documentation ¶
Index ¶
- func Create(newUser *userSchema.UserSchema) (user *userSchema.UserSchema, err error)
- func DelUser(username string) (err error)
- func FindUsers(query string) (users []*userSchema.UserSchema, err error)
- func GenerateUsername(first_name, last_name string) string
- func Get(username string) (user *userSchema.UserSchema, err error)
- func GetAll() (users []*userSchema.UserSchema, err error)
- func NewAuthToken(username string) (token string, err error)
- func Seed() (err error)
- func Update(username string, updateUser *userSchema.UserSchema) (user *userSchema.UserSchema, err error)
- func ValidateCreate(newUser *userSchema.UserSchema) (errors []string)
- func ValidateUpdate(newUser *userSchema.UserSchema) (errors []string)
- func VerifyAuthToken(token string) (user *userSchema.UserSchema, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Create ¶
func Create(newUser *userSchema.UserSchema) (user *userSchema.UserSchema, err error)
func FindUsers ¶
func FindUsers(query string) (users []*userSchema.UserSchema, err error)
func GenerateUsername ¶
func Get ¶
func Get(username string) (user *userSchema.UserSchema, err error)
func GetAll ¶
func GetAll() (users []*userSchema.UserSchema, err error)
func NewAuthToken ¶
func Update ¶
func Update(username string, updateUser *userSchema.UserSchema) (user *userSchema.UserSchema, err error)
func ValidateCreate ¶
func ValidateCreate(newUser *userSchema.UserSchema) (errors []string)
func ValidateUpdate ¶
func ValidateUpdate(newUser *userSchema.UserSchema) (errors []string)
func VerifyAuthToken ¶
func VerifyAuthToken(token string) (user *userSchema.UserSchema, err error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.