routes

package
v0.10.4 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2022 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetAPIRoutes

func SetAPIRoutes(e *echo.Echo, cfgProvider *config.ConfigProviderWithRefresh) error

SetAPIRoutes sets api routes

func SetAuthRoutes

func SetAuthRoutes(e *echo.Echo, cfgProvider *config.ConfigProviderWithRefresh)

SetAuthRoutes sets routes used by auth

func SetSwaggerUIRoutes

func SetSwaggerUIRoutes(e *echo.Echo, indexHTML []byte, assets embed.FS)

SetAPIRoutes sets api routes

func SetUIRoutes

func SetUIRoutes(e *echo.Echo, indexHTML []byte, assets embed.FS)

SetUIRoutes sets UI routes

Types

type Claims

type Claims struct {
	Email         string `json:"email"`
	EmailVerified bool   `json:"email_verified"`
	Name          string `json:"name"`
	Picture       string `json:"picture"`
}

type Nonce added in v0.8.0

type Nonce struct {
	Nonce     string `json:"nonce"`
	ReturnURL string `json:"return_url"`
}

type User

type User struct {
	OAuth2Token *oauth2.Token
	IDToken     *Claims
}

Jump to

Keyboard shortcuts

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