Documentation ¶
Index ¶
- Constants
- func Configure(l *goapp.Lifecycle, conf *config.Config)
- func UserDeserializer(r io.Reader, node *base.Node) error
- func UserSerializer(w io.Writer, node *base.Node) error
- type PublicUserData
- type PublicUserMeta
- type User
- type UserHandler
- func (h *UserHandler) GetStruct() (base.NodeData, base.NodeMeta)
- func (h *UserHandler) PostInsert(node *base.Node, m base.NodeManager) error
- func (h *UserHandler) PostUpdate(node *base.Node, m base.NodeManager) error
- func (h *UserHandler) PreInsert(node *base.Node, m base.NodeManager) error
- func (h *UserHandler) PreUpdate(node *base.Node, m base.NodeManager) error
- func (h *UserHandler) Validate(node *base.Node, m base.NodeManager, errors base.Errors)
- type UserMeta
Constants ¶
View Source
const ( USER_GENDER_MALE = "m" USER_GENDER_FEMALE = "f" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type PublicUserData ¶
type PublicUserData struct { FirstName string `json:"firstname"` LastName string `json:"lastname"` Email string `json:"email"` DateOfBirth string `json:"dateofbirth"` Locked bool `json:"locked"` Enabled bool `json:"enabled"` Expired bool `json:"expired"` Roles []string `json:"roles"` Gender string `json:"gender"` Locale string `json:"locale"` Timezone string `json:"timezone"` Username string `json:"username"` NewPassword string `json:"newpassword,omitempty"` }
type PublicUserMeta ¶
type PublicUserMeta struct { }
type User ¶
type User struct { FirstName string `json:"firstname"` LastName string `json:"lastname"` Email string `json:"email"` DateOfBirth string `json:"dateofbirth"` Locked bool `json:"locked"` Enabled bool `json:"enabled"` Expired bool `json:"expired"` Roles []string `json:"roles"` Gender string `json:"gender"` Locale string `json:"locale"` Timezone string `json:"timezone"` Username string `json:"username"` Password string `json:"password"` NewPassword string `json:"newpassword,omitempty"` }
func (*User) GetPassword ¶
func (*User) GetUsername ¶
type UserHandler ¶
type UserHandler struct { }
func (*UserHandler) PostInsert ¶
func (h *UserHandler) PostInsert(node *base.Node, m base.NodeManager) error
func (*UserHandler) PostUpdate ¶
func (h *UserHandler) PostUpdate(node *base.Node, m base.NodeManager) error
func (*UserHandler) PreInsert ¶
func (h *UserHandler) PreInsert(node *base.Node, m base.NodeManager) error
func (*UserHandler) PreUpdate ¶
func (h *UserHandler) PreUpdate(node *base.Node, m base.NodeManager) error
func (*UserHandler) Validate ¶
func (h *UserHandler) Validate(node *base.Node, m base.NodeManager, errors base.Errors)
Click to show internal directories.
Click to hide internal directories.