responses

package
v0.0.12 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 25, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateUserResponse

type CreateUserResponse struct {
	ID           string `json:"id" example:"1"`
	TokenType    string `json:"tokenType" example:"Bearer"`
	AccessToken  string `json:"accessToken" example:"1"`
	RefreshToken string `json:"refreshToken" example:"token"`
	ExpiresIn    int64  `json:"expiresIn" example:"1687957803"`
}

type ExchangeCodeResponse

type ExchangeCodeResponse struct {
	Code string `json:"code" example:"123456"`
}

type IDResp

type IDResp struct {
	ID string `json:"id" example:"1"`
}

type JSONWebKey added in v0.0.7

type JSONWebKey struct {
	Kty string   `json:"kty"`
	Kid string   `json:"kid"`
	Use string   `json:"use"`
	N   *big.Int `json:"n"`
	E   int      `json:"e"`
}

type Jwks added in v0.0.7

type Jwks struct {
	Keys []JSONWebKey `json:"keys"`
}

type RightResponse

type RightResponse struct {
	Name string `json:"name" example:"default"`
}

type RoleResponse

type RoleResponse struct {
	Name string `json:"name" example:"admin"`
}

type TokenResponse

type TokenResponse struct {
	TokenType    string `json:"tokenType" example:"Bearer"`
	AccessToken  string `json:"accessToken" example:"token"`
	RefreshToken string `json:"refreshToken" example:"token"`
	ExpiresIn    int64  `json:"expiresIn" example:"1687957803"`
}

type UserResponse

type UserResponse struct {
	ID       string   `json:"id" example:"1"`
	Username string   `json:"username" example:"test"`
	Email    string   `json:"email" example:"test@test.com"`
	Role     string   `json:"role" example:"basic"`
	Rights   []string `json:"rights"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL