Documentation ¶
Index ¶
Constants ¶
View Source
const ( LoginStatusPending = "pending" LoginStatusFailed = "failed" LoginStatusSucceeded = "succeeded" )
Variables ¶
View Source
var AccessTokenIndexes = []repos.IndexField{ { Field: []repos.IndexKey{ {Key: "id", Value: repos.IndexAsc}, }, Unique: true, }, { Field: []repos.IndexKey{ {Key: "user_id", Value: repos.IndexAsc}, {Key: "email", Value: repos.IndexAsc}, {Key: "provider", Value: repos.IndexAsc}, }, Unique: true, }, }
View Source
var InviteCodeIndexes = []repos.IndexField{ { Field: []repos.IndexKey{ {Key: "id", Value: repos.IndexAsc}, }, Unique: true, }, }
View Source
var RemoteTokenIndexes = []repos.IndexField{ { Field: []repos.IndexKey{ {Key: "id", Value: repos.IndexAsc}, }, Unique: true, }, }
Functions ¶
This section is empty.
Types ¶
type AccessToken ¶
type ChangeEmailToken ¶
type InvitationStatus ¶
type InvitationStatus string
const ( InvitationStatusAccepted InvitationStatus = "accepted" InvitationStatusRejected InvitationStatus = "rejected" InvitationStatusNone InvitationStatus = "none" InvitationStatusSend InvitationStatus = "sent" )
type InviteCode ¶
type InviteCode struct { repos.BaseEntity `bson:",inline"` Name string `json:"name"` InviteCode string `json:"inviteCode"` }
type LoginStatus ¶
type LoginStatus string
type ProviderDetail ¶
type RemoteLogin ¶
type RemoteLogin struct { repos.BaseEntity `bson:",inline"` LoginStatus LoginStatus `json:"login_status"` Secret string `json:"secret"` AuthHeader string `json:"auth_header"` }
type ResetPasswordToken ¶
type User ¶
type User struct { repos.BaseEntity `json:",inline" graphql:"noinput"` Name string `json:"name"` Avatar *string `json:"avatar"` ProviderGithub *ProviderDetail `json:"provider_github"` ProviderGitlab *ProviderDetail `json:"provider_gitlab"` ProviderGoogle *ProviderDetail `json:"provider_google"` Email string `json:"email"` Password string `json:"password" graphql:"ignore"` InvitationStatus InvitationStatus `json:"invite"` Verified bool `json:"verified" graphql:"noinput"` Metadata UserMetadata `json:"metadata"` Joined time.Time `json:"joined"` PasswordSalt string `json:"password_salt" graphql:"ignore"` Approved bool `json:"approved" graphql:"noinput"` }
type UserMetadata ¶
type VerifyToken ¶
Click to show internal directories.
Click to hide internal directories.