Documentation ¶
Index ¶
- type AppleMobileLogin
- type ApplicationRole
- type Binding
- type CreateApplication
- type CreateRole
- type CreateScope
- type FindUser
- type GoogleMobileLogin
- type ListRoles
- type ListScopes
- type MailRegister
- type OAuthAuthorize
- type OAuthClientStatus
- type OAuthCreateClient
- type OAuthTokens
- type PasswordLogin
- type PlutoRequest
- type RefreshAccessToken
- type RegisterVerifyMail
- type ResetPasswordMail
- type ResetPasswordWeb
- type RoleScope
- type RoleScopeUpdate
- type UnBinding
- type UpdateUserInfo
- type UserRole
- type VerifyAccessToken
- type VerifyIDToken
- type WechatMobileLogin
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppleMobileLogin ¶ added in v0.2.0
type AppleMobileLogin struct { Code string `json:"code"` DeviceID string `json:"device_id"` AppID string `json:"app_id"` }
func (*AppleMobileLogin) Validation ¶ added in v0.2.0
func (aml *AppleMobileLogin) Validation() bool
type ApplicationRole ¶ added in v0.4.0
func (*ApplicationRole) Validation ¶ added in v1.0.0
func (ar *ApplicationRole) Validation() bool
type Binding ¶ added in v1.0.0
type Binding struct { Mail string `json:"mail"` Code string `json:"code"` IDToken string `json:"id_token"` Type string `json:"type"` }
func (*Binding) Validation ¶ added in v1.0.0
type CreateApplication ¶ added in v0.4.0
type CreateApplication struct {
Name string `json:"name"`
}
func (*CreateApplication) Validation ¶ added in v0.4.0
func (ca *CreateApplication) Validation() bool
type CreateRole ¶ added in v0.4.0
func (*CreateRole) Validation ¶ added in v0.4.0
func (cr *CreateRole) Validation() bool
type CreateScope ¶ added in v0.4.0
func (*CreateScope) Validation ¶ added in v0.4.0
func (cs *CreateScope) Validation() bool
type FindUser ¶ added in v0.4.0
type FindUser struct {
Name string `json:"name"`
}
func (*FindUser) Validation ¶ added in v0.4.0
type GoogleMobileLogin ¶
type GoogleMobileLogin struct { IDToken string `json:"id_token"` DeviceID string `json:"device_id"` AppID string `json:"app_id"` }
func (*GoogleMobileLogin) Validation ¶
func (gml *GoogleMobileLogin) Validation() bool
type ListRoles ¶ added in v0.4.0
type ListRoles struct {
AppID uint `json:"app_id" schema:"app_id"`
}
func (*ListRoles) Validation ¶ added in v1.0.0
type ListScopes ¶ added in v0.4.0
type ListScopes struct {
AppID uint `json:"app_id" schema:"app_id"`
}
func (*ListScopes) Validation ¶ added in v1.0.0
func (ls *ListScopes) Validation() bool
type MailRegister ¶
type MailRegister struct { Mail string `json:"mail"` Name string `json:"name"` Password string `json:"password"` }
func (*MailRegister) Validation ¶
func (mr *MailRegister) Validation() bool
type OAuthAuthorize ¶ added in v1.0.0
type OAuthAuthorize struct { ClientID string `json:"client_id" schema:"client_id"` AppID string `json:"app_id" schema:"app_id"` RedirectURI string `json:"redirect_uri" schema:"redirect_uri"` ResponseType string `json:"response_type" schema:"response_type"` State string `json:"state"` Scopes string `json:"scopes"` LifeTime int64 `json:"life_time"` }
func (*OAuthAuthorize) Validation ¶ added in v1.0.0
func (auth *OAuthAuthorize) Validation() bool
type OAuthClientStatus ¶ added in v1.0.0
func (*OAuthClientStatus) Validation ¶ added in v1.0.0
func (ocs *OAuthClientStatus) Validation() bool
type OAuthCreateClient ¶ added in v1.0.0
type OAuthCreateClient struct { Key string `json:"key"` Secret string `json:"secret"` RedirectURI string `json:"redirect_uri"` }
func (*OAuthCreateClient) Validation ¶ added in v1.0.0
func (occ *OAuthCreateClient) Validation() bool
type OAuthTokens ¶ added in v1.0.0
type OAuthTokens struct { GrantType string `json:"grant_type"` Code string `json:"code"` RedirectURI string `json:"redirect_uri"` ClientID string ClientSecret string Scopes string `json:"scopes"` AppID string `json:"app_id"` DeviceID string `json:"device_id"` Password string `json:"password"` User string `json:"user"` RefreshToken string `json:"refresh_token"` }
func (*OAuthTokens) ValidateAuthorizationCode ¶ added in v1.0.0
func (token *OAuthTokens) ValidateAuthorizationCode() bool
func (*OAuthTokens) ValidateClientCredentials ¶ added in v1.0.0
func (token *OAuthTokens) ValidateClientCredentials() bool
func (*OAuthTokens) ValidatePasswordGrant ¶ added in v1.0.0
func (token *OAuthTokens) ValidatePasswordGrant() bool
func (*OAuthTokens) ValidateRefreshToken ¶ added in v1.0.0
func (token *OAuthTokens) ValidateRefreshToken() bool
func (*OAuthTokens) Validation ¶ added in v1.0.0
func (token *OAuthTokens) Validation() bool
type PasswordLogin ¶ added in v1.0.0
type PasswordLogin struct { Account string `json:"account" schema:"account"` Password string `json:"password" schema:"password"` DeviceID string `json:"device_id" schema:"deviceID"` AppID string `json:"app_id" schema:"appID"` }
func (*PasswordLogin) Validation ¶ added in v1.0.0
func (ml *PasswordLogin) Validation() bool
type PlutoRequest ¶
type PlutoRequest interface {
Validation() bool
}
type RefreshAccessToken ¶
type RefreshAccessToken struct { RefreshToken string `json:"refresh_token"` AppID string `json:"app_id"` Scopes string `json:"scopes"` }
func (*RefreshAccessToken) Validation ¶
func (rat *RefreshAccessToken) Validation() bool
type RegisterVerifyMail ¶
type RegisterVerifyMail struct {
Mail string `json:"mail"`
}
func (*RegisterVerifyMail) Validation ¶
func (rvm *RegisterVerifyMail) Validation() bool
type ResetPasswordMail ¶
type ResetPasswordMail struct {
Mail string `json:"mail"`
}
func (*ResetPasswordMail) Validation ¶
func (rpm *ResetPasswordMail) Validation() bool
type ResetPasswordWeb ¶ added in v0.4.0
type ResetPasswordWeb struct {
Password string `json:"password" schema:"password"`
}
func (*ResetPasswordWeb) Validation ¶ added in v0.4.0
func (rp *ResetPasswordWeb) Validation() bool
type RoleScope ¶ added in v0.4.0
func (*RoleScope) Validation ¶ added in v0.4.0
type RoleScopeUpdate ¶ added in v1.0.0
func (*RoleScopeUpdate) Validation ¶ added in v1.0.0
func (rscu *RoleScopeUpdate) Validation() bool
type UnBinding ¶ added in v1.0.0
type UnBinding struct {
Type string `json:"type"`
}
func (*UnBinding) Validation ¶ added in v1.0.0
type UpdateUserInfo ¶
func (*UpdateUserInfo) Validation ¶
func (uui *UpdateUserInfo) Validation() bool
type UserRole ¶ added in v0.4.0
type UserRole struct { UserID uint `json:"user_id" schema:"user_id"` AppID uint `json:"app_id" schema:"app_id"` RoleID uint `json:"role_id" schema:"role_id"` }
func (*UserRole) Validation ¶ added in v1.0.0
type VerifyAccessToken ¶ added in v1.0.0
type VerifyAccessToken struct {
Token string `json:"token"`
}
func (*VerifyAccessToken) Validation ¶ added in v1.0.0
func (vat *VerifyAccessToken) Validation() bool
type VerifyIDToken ¶ added in v1.0.0
type VerifyIDToken struct {
Token string `json:"token"`
}
func (*VerifyIDToken) Validation ¶ added in v1.0.0
func (vit *VerifyIDToken) Validation() bool
type WechatMobileLogin ¶
type WechatMobileLogin struct { Code string `json:"code"` DeviceID string `json:"device_id"` AppID string `json:"app_id"` }
func (*WechatMobileLogin) Validation ¶
func (wml *WechatMobileLogin) Validation() bool
Click to show internal directories.
Click to hide internal directories.