routes

package
v0.0.0-...-b95de3a Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2021 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetAPIRoutes

func SetAPIRoutes(e *echo.Echo, temporalConn *grpc.ClientConn) error

SetAPIRoutes sets api routes

func SetAuthRoutes

func SetAuthRoutes(e *echo.Echo, cfg *config.Auth)

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, 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 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