Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Error ¶
type Error struct {
// code
// Example: 500
// Required: true
Code *int64 `json:"code"`
// message
// Example: Explicit error message
// Required: true
Message *string `json:"message"`
// status
// Example: Internal Server Error
// Required: true
Status *string `json:"status"`
}
Error error
swagger:model Error
func (*Error) ContextValidate ¶
ContextValidate validates this error based on context it is used
func (*Error) MarshalBinary ¶
MarshalBinary interface implementation
func (*Error) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type Principal ¶
type Principal string
Principal principal
swagger:model principal
func (Principal) ContextValidate ¶
ContextValidate validates this principal based on context it is used
type Token ¶
type Token struct {
// access token
AccessToken string `json:"accessToken,omitempty"`
// expires at
// Format: date-time
ExpiresAt strfmt.DateTime `json:"expiresAt,omitempty"`
// issued at
// Format: date-time
IssuedAt strfmt.DateTime `json:"issuedAt,omitempty"`
// refresh token
RefreshToken string `json:"refreshToken,omitempty"`
}
Token token
swagger:model Token
func (*Token) ContextValidate ¶
ContextValidate validates this token based on context it is used
func (*Token) MarshalBinary ¶
MarshalBinary interface implementation
func (*Token) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type TokenInfo ¶
type TokenInfo struct {
// expires at
// Format: date-time
ExpiresAt strfmt.DateTime `json:"expiresAt,omitempty"`
// issued at
// Format: date-time
IssuedAt strfmt.DateTime `json:"issuedAt,omitempty"`
// username
Login string `json:"login,omitempty"`
// roles
Roles []string `json:"roles"`
}
TokenInfo token info
swagger:model TokenInfo
func (*TokenInfo) ContextValidate ¶
ContextValidate validates this token info based on context it is used
func (*TokenInfo) MarshalBinary ¶
MarshalBinary interface implementation
func (*TokenInfo) UnmarshalBinary ¶
UnmarshalBinary interface implementation