controller

package
v1.0.27 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2023 License: MIT Imports: 16 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateAuthMethod

func CreateAuthMethod(c echo.Context, gc *GlobalContext) error

CreateAuthMethod controller

func CreateBasicAuthData

func CreateBasicAuthData(c echo.Context, gc *GlobalContext) error

CreateBasicAuthData controller

func CreateKeyBasedAuthData

func CreateKeyBasedAuthData(c echo.Context, gc *GlobalContext) error

CreateKeyBasedAuthData controller

func CreateOAuthData

func CreateOAuthData(c echo.Context, gc *GlobalContext) error

CreateOAuthData controller

func CreateToken

func CreateToken(c echo.Context, gc *GlobalContext) error

CreateToken controller

func DeleteAuthMethod

func DeleteAuthMethod(c echo.Context, gc *GlobalContext) error

DeleteAuthMethod controller

func DeleteBasicAuthData

func DeleteBasicAuthData(c echo.Context, gc *GlobalContext) error

DeleteBasicAuthData controller

func DeleteKeyBasedAuthData

func DeleteKeyBasedAuthData(c echo.Context, gc *GlobalContext) error

DeleteKeyBasedAuthData controller

func DeleteOAuthData

func DeleteOAuthData(c echo.Context, gc *GlobalContext) error

DeleteOAuthData controller

func GetAuthMethod

func GetAuthMethod(c echo.Context, gc *GlobalContext) error

GetAuthMethod controller

func GetAuthMethods

func GetAuthMethods(c echo.Context, gc *GlobalContext) error

GetAuthMethods controller

func GetBasicAuthData

func GetBasicAuthData(c echo.Context, gc *GlobalContext) error

GetBasicAuthData controller

func GetBasicAuthItems

func GetBasicAuthItems(c echo.Context, gc *GlobalContext) error

GetBasicAuthItems controller

func GetEndpoints

func GetEndpoints(c echo.Context, gc *GlobalContext) error

GetEndpoints controller

func GetKeyBasedAuthData

func GetKeyBasedAuthData(c echo.Context, gc *GlobalContext) error

GetKeyBasedAuthData controller

func GetKeysBasedAuthData

func GetKeysBasedAuthData(c echo.Context, gc *GlobalContext) error

GetKeysBasedAuthData controller

func GetOAuthData

func GetOAuthData(c echo.Context, gc *GlobalContext) error

GetOAuthData controller

func GetOAuthItems

func GetOAuthItems(c echo.Context, gc *GlobalContext) error

GetOAuthItems controller

func Health

func Health(c echo.Context, _ *GlobalContext) error

Health controller

func Me

func Me(c echo.Context, _ *GlobalContext) error

Me controller

func Ready

func Ready(c echo.Context, gc *GlobalContext) error

Ready controller

func ReverseProxy

func ReverseProxy(c echo.Context, gc *GlobalContext) error

ReverseProxy controller

func UpdateAuthMethod

func UpdateAuthMethod(c echo.Context, gc *GlobalContext) error

UpdateAuthMethod controller

func UpdateBasicAuthData

func UpdateBasicAuthData(c echo.Context, gc *GlobalContext) error

UpdateBasicAuthData controller

func UpdateKeyBasedAuthData

func UpdateKeyBasedAuthData(c echo.Context, gc *GlobalContext) error

UpdateKeyBasedAuthData controller

func UpdateOAuthData

func UpdateOAuthData(c echo.Context, gc *GlobalContext) error

UpdateOAuthData controller

Types

type GlobalContext

type GlobalContext struct {
	Database *module.Database
	Cache    *service.Redis
}

GlobalContext type

func (*GlobalContext) GetBalancer

func (c *GlobalContext) GetBalancer() (map[string]component.Balancer, error)

GetBalancer gets load balancer

func (*GlobalContext) GetConfigs

func (c *GlobalContext) GetConfigs() (*model.Configs, error)

GetConfigs gets a config instance

func (*GlobalContext) GetDatabase

func (c *GlobalContext) GetDatabase() *module.Database

GetDatabase gets a database connection

Jump to

Keyboard shortcuts

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