routes

package
v0.12.2 Latest Latest
Warning

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

Go to latest
Published: May 4, 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 Auth added in v0.12.2

type Auth struct {
	Enabled bool
	Options []string
}

type Claims

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

type CodecResponse added in v0.12.2

type CodecResponse struct {
	Endpoint    string
	AccessToken string
}

type Nonce added in v0.8.0

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

type SettingsResponse added in v0.12.2

type SettingsResponse struct {
	Auth                        *Auth
	DefaultNamespace            string
	ShowTemporalSystemNamespace bool
	FeedbackURL                 string
	Codec                       *CodecResponse
}

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