Documentation ¶
Index ¶
- type Accounts
- type BoundAccountDeleteRequest
- type BoundAccounts
- type Domain
- type DomainListResponse
- type IDList
- type Link
- type LinkType
- type Links
- type LoginID
- type LoginRequest
- type OAuthLoginRequest
- type OAuthResource
- type OneTimeTokenLoginRequest
- type PasswordChangeRequest
- type PasswordRestoreRequest
- type Profile
- type RegisterRequest
- type User
- type UserData
- type UserList
- type UserLogin
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BoundAccountDeleteRequest ¶
type BoundAccountDeleteRequest struct { // required: true Resource string `json:"resource"` }
BoundAccountDeleteRequest -- request to remove bound account
swagger:model
type Domain ¶
type Domain struct { // required: true Domain string `json:"domain"` AddedBy string `json:"added_by,omitempty"` CreatedAt time.Time `json:"created_at,omitempty"` }
DomainListResponse -- domains list
swagger:model
type DomainListResponse ¶
type DomainListResponse struct {
DomainList []Domain `json:"domain_list,omitempty"`
}
DomainListResponse -- domains list
swagger:model
type Link ¶
type Link struct { // required: true Link string `json:"link,omitempty"` Type LinkType `json:"type,omitempty"` CreatedAt time.Time `json:"created_at,omitempty"` ExpiredAt time.Time `json:"expired_at,omitempty"` IsActive bool `json:"is_active,omitempty"` SentAt time.Time `json:"sent_at,omitempty"` }
Link -- link (for registration/activation/etc)
swagger:model
type Links ¶
type Links struct {
Links []Link `json:"links,omitempty"`
}
Links -- links list
swagger:model
type LoginRequest ¶
type LoginRequest struct { // required: true Login string `json:"login"` // required: true Password string `json:"password"` }
LoginRequest -- login request (for basic login)
swagger:model
type OAuthLoginRequest ¶
type OAuthLoginRequest struct { // required: true Resource OAuthResource `json:"resource"` // required: true AccessToken string `json:"access_token"` }
LoginRequest -- login request (for oauth login)
swagger:model
type OAuthResource ¶
type OAuthResource string
const ( GitHubOAuth OAuthResource = "github" GoogleOAuth OAuthResource = "google" FacebookOAuth OAuthResource = "facebook" )
type OneTimeTokenLoginRequest ¶
type OneTimeTokenLoginRequest struct { // required: true Token string `json:"token"` }
LoginRequest -- login request (for token login)
swagger:model
type PasswordChangeRequest ¶
type PasswordChangeRequest struct { // required: true CurrentPassword string `json:"current_password"` // required: true NewPassword string `json:"new_password"` }
PasswordChangeRequest -- password change request
swagger:model
type PasswordRestoreRequest ¶
type PasswordRestoreRequest struct { // required: true Link string `json:"link"` // required: true NewPassword string `json:"new_password"` }
PasswordRestoreRequest -- password restore request
swagger:model
type Profile ¶
type Profile struct { Referral string `json:"referral,omitempty"` Access string `json:"access,omitempty"` CreatedAt string `json:"created_at,omitempty"` DeletedAt string `json:"deleted_at,omitempty"` BlacklistedAt string `json:"blacklisted_at,omitempty"` Data UserData `json:"data,omitempty"` }
Profile -- additional user information
swagger:model
type RegisterRequest ¶
type RegisterRequest struct { // required: true Login string `json:"login"` // required: true Password string `json:"password"` // required: true ReCaptcha string `json:"recaptcha"` Referral string `json:"referral"` }
RegisterRequest -- request to create new user
swagger:model
type User ¶
type User struct { // swagger: allOf *UserLogin // swagger: allOf *Accounts // swagger: allOf *Profile Role string `json:"role,omitempty"` IsActive bool `json:"is_active,omitempty"` IsInBlacklist bool `json:"is_in_blacklist,omitempty"` IsDeleted bool `json:"is_deleted,omitempty"` }
User -- user model
swagger:model