Versions in this module Expand all Collapse all v0 v0.0.1 Dec 6, 2024 Changes in this version + func Routes(app *web.App, cfg Config) + type Config struct + AuthClient *authclient.Client + Log *logger.Logger + UserBus *userbus.Business + type NewUser struct + Department string + Email string + Name string + Password string + PasswordConfirm string + Roles []string + func (app *NewUser) Decode(data []byte) error + func (app NewUser) Validate() error + type UpdateUser struct + Department *string + Email *string + Enabled *bool + Name *string + Password *string + PasswordConfirm *string + func (app *UpdateUser) Decode(data []byte) error + func (app UpdateUser) Validate() error + type UpdateUserRole struct + Roles []string + func (app *UpdateUserRole) Decode(data []byte) error + func (app UpdateUserRole) Validate() error + type User struct + DateCreated string + DateUpdated string + Department string + Email string + Enabled bool + ID string + Name string + PasswordHash []byte + Roles []string + func (app User) Encode() ([]byte, string, error)