Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthTokenPayload ¶
type AuthTokenPayload struct { // app_id // required: true // example: "react" AppID string `json:"app_id" validate:"required"` // uid // required: true // example: 0 UID int `json:"uid" validate:"required"` // verified // required: true // example: true Verified bool `json:"verified" validated:"required"` // scopes // required: false // example: ['read','write'] Scopes []string `json:"scopes,omitempty"` }
AuthTokenPayload swagger:model AuthTokenPayload
type Err ¶
type Err interface {
WriteResponse(w http.ResponseWriter)
}
func NewBadRequestError ¶
func NewForbiddenError ¶
func NewInternalServerError ¶
func NewNonAuthoritative ¶
func NewNotFoundError ¶
func NewUnauthorized ¶
type OpaInputReq ¶
type OpaInputReq struct {
Input OpaReq
}
type PairToken ¶
type PairToken struct { // access_token // required: true AccessToken *Token `json:"access_token" validate:"required"` // refresh_token // required: true RefreshToken *Token `json:"refresh_token" validate:"required"` }
Pair Token swagger:model PairToken
type Suc ¶
type Suc interface {
WriteResponse(w http.ResponseWriter)
}
func NewBasicSuccess ¶
func NewSuccessCreated ¶
Click to show internal directories.
Click to hide internal directories.