Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitUserService ¶
func NewInMemoryUserRepository ¶
func NewInMemoryUserRepository() userRepository
func SetUserService ¶
func SetUserService(newUs Service)
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func GetUserService ¶
func GetUserService() Service
func (Service) SetPassword ¶
func (Service) UpdateUser ¶
func (Service) ValidatePassword ¶
type User ¶
type User struct { ID string `json:"id,omitempty"` Realm string `json:"realm,omitempty"` Roles []string `json:"roles,omitempty"` Properties map[string]string `json:"properties,omitempty"` }
func (*User) SetProperty ¶
type ValidatePasswordResult ¶
type ValidatePasswordResult struct {
Valid bool `json:"valid,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.