Documentation ¶
Index ¶
- func CreateEmail(address, userID, fullName string, verified, preferred bool) (string, *rerror.Error)
- type CheckKeyPairRequest
- type CheckKeyPairResponse
- type CheckSessionRequest
- type CheckSessionResponse
- type CreateEmailRequest
- type CreateEmailResponse
- type CreateKeyPairRequest
- type CreateKeyPairResponse
- type CreateSessionRequest
- type CreateSessionResponse
- type CreateUserRequest
- type CreateUserResponse
- type GetEmailResponse
- type GetEmailsResponse
- type GetUserRequest
- type GetUserResponse
- type VerifyEmailRequest
- type VerifyKeyPairRequest
- type VerifySessionRequest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CheckKeyPairRequest ¶
type CheckKeyPairResponse ¶
type CheckKeyPairResponse struct { KeyID string `json:"keyID,omitempty"` Name string `json:"name,omitempty"` ExpireAt int64 `json:"expireAt,omitempty"` UserID string `json:"userID,omitempty"` FullName string `json:"fullName,omitempty"` Alias string `json:"alias,omitempty"` Roles []string `json:"roles,omitempty"` }
type CheckSessionRequest ¶
type CheckSessionRequest struct {
Authorization string `json:"authorization,omitempty"`
}
type CheckSessionResponse ¶
type CheckSessionResponse struct { SessionID string `json:"sessionID,omitempty"` UserAgent string `json:"userAgent,omitempty"` Ip string `json:"ip,omitempty"` ExpireAt int64 `json:"expireAt,omitempty"` UserID string `json:"userID,omitempty"` Roles []string `json:"roles,omitempty"` FullName string `json:"fullName,omitempty"` Alias string `json:"alias,omitempty"` }
type CreateEmailRequest ¶
type CreateEmailRequest struct {
Address string `json:"address,omitempty"`
}
type CreateEmailResponse ¶
type CreateEmailResponse struct {
VerificationCodeID string `json:"verificationCodeID,omitempty"`
}
type CreateKeyPairRequest ¶
type CreateKeyPairResponse ¶
type CreateKeyPairResponse struct { KeyID string `json:"keyID,omitempty"` Name string `json:"name,omitempty"` ExpireAt int64 `json:"expireAt,omitempty"` Key string `json:"key,omitempty"` Secret string `json:"secret,omitempty"` Verified bool `json:"verified,omitempty"` VerificationCodeID string `json:"verificationCodeID,omitempty"` }
func (*CreateKeyPairResponse) Create ¶
func (g *CreateKeyPairResponse) Create(req *CreateKeyPairRequest, userID string, fullName string) *rerror.Error
type CreateSessionRequest ¶
type CreateSessionRequest struct {
Email string `json:"email,omitempty"`
}
type CreateSessionResponse ¶
type CreateSessionResponse struct { Bearer string `json:"bearer,omitempty"` SessionVCodeID string `json:"sessionVCodeID,omitempty"` Verified bool `json:"verified,omitempty"` SessionID string `json:"sessionID,omitempty"` UserAgent string `json:"userAgent,omitempty"` Ip string `json:"ip,omitempty"` ExpireAt int64 `json:"expireAt,omitempty"` UserID string `json:"userID,omitempty"` Roles []string `json:"roles,omitempty"` FullName string `json:"fullName,omitempty"` Alias string `json:"alias,omitempty"` }
func (*CreateSessionResponse) Create ¶
func (g *CreateSessionResponse) Create(req *CreateSessionRequest, userAgent string, clientIP string) *rerror.Error
type CreateUserRequest ¶
type CreateUserResponse ¶
type CreateUserResponse struct { Bearer string `json:"bearer,omitempty"` SessionVCodeID string `json:"sessionVCodeID,omitempty"` Verified bool `json:"verified,omitempty"` SessionID string `json:"sessionID,omitempty"` UserAgent string `json:"userAgent,omitempty"` Ip string `json:"ip,omitempty"` ExpireAt int64 `json:"expireAt,omitempty"` UserID string `json:"userID,omitempty"` Roles []string `json:"roles,omitempty"` FullName string `json:"fullName,omitempty"` Alias string `json:"alias,omitempty"` }
func (*CreateUserResponse) Create ¶
func (g *CreateUserResponse) Create(req *CreateUserRequest, userAgent string, userIP string) *rerror.Error
type GetEmailResponse ¶
type GetEmailsResponse ¶
type GetEmailsResponse struct {
Emails []*GetEmailResponse `json:"emails,omitempty"`
}
func (*GetEmailsResponse) LoadEmails ¶
func (g *GetEmailsResponse) LoadEmails(userID string) *rerror.Error
type GetUserRequest ¶
type GetUserRequest struct {
UserID string `json:"userID,omitempty"`
}
type GetUserResponse ¶
type VerifyEmailRequest ¶
type VerifyEmailRequest struct { VerificationCodeID string `json:"verificationCodeID,omitempty"` Code string `json:"code,omitempty"` }
func (*VerifyEmailRequest) Verify ¶
func (g *VerifyEmailRequest) Verify() *rerror.Error
type VerifyKeyPairRequest ¶
type VerifyKeyPairRequest struct { VerificationCodeID string `json:"verificationCodeID,omitempty"` Code string `json:"code,omitempty"` }
func (*VerifyKeyPairRequest) Verify ¶
func (g *VerifyKeyPairRequest) Verify() *rerror.Error
type VerifySessionRequest ¶
type VerifySessionRequest struct { VerificationCodeID string `json:"verificationCodeID,omitempty"` Code string `json:"code,omitempty"` }
func (*VerifySessionRequest) Verify ¶
func (g *VerifySessionRequest) Verify() *rerror.Error
Click to show internal directories.
Click to hide internal directories.