Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApplicationData ¶
type ApplicationData struct {
AppName string `bson:"app_name" json:"app_name"`
}
func (*ApplicationData) Serialize ¶
func (ad *ApplicationData) Serialize()
type LoginData ¶
type RequestData ¶
type RequestData struct {
AccessToken string `bson:"access_token" json:"access_token"`
}
type RetrievedKeys ¶
type RetrievedKeys struct {
Keys []APIKey `bson:"api_keys" json:"api_keys"`
}
func (*RetrievedKeys) AddItem ¶
func (rk *RetrievedKeys) AddItem(item APIKey) []APIKey
type User ¶
type User struct {
Email string `bson:"email" json:"email,omitempty" validate:"required"`
PasswordHash string `bson:"password_hash" json:"password_hash" validate:"required"`
CreatedAt primitive.DateTime `bson:"created_at" json:"created_at" bson:"created_at"`
UserType UserType `bson:"user_type" json:"user_type"`
}
Click to show internal directories.
Click to hide internal directories.