Documentation ¶
Index ¶
Constants ¶
View Source
const (
RoleClinic = "clinic"
)
Variables ¶
This section is empty.
Functions ¶
func ErrorValueStringAsIDNotValid ¶ added in v1.27.0
func IDValidator ¶ added in v1.27.0
func IDValidator(value string, errorReporter structure.ErrorReporter)
func ValidateID ¶ added in v1.27.0
Types ¶
type Delete ¶ added in v1.31.0
type Delete struct {
Password *string `json:"password,omitempty"`
}
func (*Delete) Parse ¶ added in v1.31.0
func (d *Delete) Parse(parser structure.ObjectParser)
type User ¶
type User struct { UserID *string `json:"userid,omitempty" bson:"userid,omitempty"` // TODO: Rename ID/id Username *string `json:"username,omitempty" bson:"username,omitempty"` // TODO: Rename Email/email PasswordHash *string `json:"-" bson:"pwhash,omitempty"` Authenticated *bool `json:"authenticated,omitempty" bson:"authenticated,omitempty"` // TODO: Rename EmaiLVerified/emailVerified TermsAccepted *string `json:"termsAccepted,omitempty" bson:"termsAccepted,omitempty"` Roles *[]string `json:"roles,omitempty" bson:"roles,omitempty"` CreatedTime *time.Time `json:"createdTime,omitempty" bson:"createdTime,omitempty"` ModifiedTime *time.Time `json:"modifiedTime,omitempty" bson:"modifiedTime,omitempty"` DeletedTime *time.Time `json:"deletedTime,omitempty" bson:"deletedTime,omitempty"` Revision *int `json:"revision,omitempty" bson:"revision,omitempty"` }
func (*User) Parse ¶ added in v1.31.0
func (u *User) Parse(parser structure.ObjectParser)
Click to show internal directories.
Click to hide internal directories.