Documentation
¶
Index ¶
Constants ¶
View Source
const ( NewUserQueueID = "gov.user.new" DeleteUserQueueID = "gov.user.delete" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DeleteUserProps ¶ added in v0.2.4
type DeleteUserProps struct {
Userid string `json:"userid"`
}
DeleteUserProps are properties of a deleted user
func DecodeDeleteUserProps ¶ added in v0.2.4
func DecodeDeleteUserProps(msgdata []byte) (*DeleteUserProps, error)
DecodeDeleteUserProps marshals json encoded delete user props into a struct
type NewUserProps ¶ added in v0.2.4
type NewUserProps struct { Userid string `json:"userid"` Username string `json:"username"` Email string `json:"email"` FirstName string `json:"first_name"` LastName string `json:"last_name"` CreationTime int64 `json:"creation_time"` }
NewUserProps are properties of a newly created user
func DecodeNewUserProps ¶ added in v0.2.4
func DecodeNewUserProps(msgdata []byte) (*NewUserProps, error)
DecodeNewUserProps marshals json encoded new user props into a struct
type ResUserGet ¶
type ResUserGet struct { ResUserGetPublic Email string `json:"email"` }
ResUserGet holds all the fields of a user
type ResUserGetPublic ¶
type ResUserGetPublic struct { Userid string `json:"userid"` Username string `json:"username"` AuthTags string `json:"auth_tags"` FirstName string `json:"first_name"` LastName string `json:"last_name"` CreationTime int64 `json:"creation_time"` }
ResUserGetPublic holds the public fields of a user
type User ¶
type User interface {
GetByID(userid string) (*ResUserGet, error)
}
User is a user management service
Source Files
¶
- route.go
- route_apikey.go
- route_auth.go
- route_create.go
- route_edit.go
- route_editsecure.go
- route_get.go
- route_session.go
- service_apikey.go
- service_auth.go
- service_create.go
- service_edit.go
- service_editsecure.go
- service_get.go
- service_session.go
- user.go
- valid.go
- validation_apikey_gen.go
- validation_auth_gen.go
- validation_create_gen.go
- validation_edit_gen.go
- validation_editsecure_gen.go
- validation_get_gen.go
- validation_session_gen.go