setup

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2021 License: Apache-2.0 Imports: 30 Imported by: 1 module, 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

Functions

func CreateEchoServer added in v0.2.0

func CreateEchoServer() (*echo.Echo, error)

func NewEchoServer added in v0.2.0

func NewEchoServer(serverConfig *config.ServerConfig, templates *AppTemplates, config2 *oidcsdk.Config,
	manager oidcsdk.IManager, handler *handlers.LoginHandler, si api.ServerInterface) *echo.Echo

func NewGormDB added in v0.2.0

func NewGormDB(config *config.DBConfig, serverConfig *config.ServerConfig) (*gorm.DB, error)

func StaticFromRice added in v0.3.0

func StaticFromRice(inner echo.HandlerFunc) echo.HandlerFunc

Types

type AppTemplates

type AppTemplates struct {
	// contains filtered or unexported fields
}

func NewAppTemplates

func NewAppTemplates() *AppTemplates

func (*AppTemplates) Render

func (t *AppTemplates) Render(w io.Writer, name string, data interface{}, _ echo.Context) error

type CerberusPageResponseHandler added in v0.7.0

type CerberusPageResponseHandler struct {
	// contains filtered or unexported fields
}

func NewCerberusPageResponseHandler added in v0.7.0

func NewCerberusPageResponseHandler(template *AppTemplates) *CerberusPageResponseHandler

func (*CerberusPageResponseHandler) DisplayConsentPage added in v0.7.0

func (c *CerberusPageResponseHandler) DisplayConsentPage(writer http.ResponseWriter, r *http.Request)

func (*CerberusPageResponseHandler) DisplayErrorPage added in v0.7.0

func (c *CerberusPageResponseHandler) DisplayErrorPage(err error, writer http.ResponseWriter, r *http.Request)

func (*CerberusPageResponseHandler) DisplayLoginPage added in v0.7.0

func (c *CerberusPageResponseHandler) DisplayLoginPage(writer http.ResponseWriter, r *http.Request)

func (*CerberusPageResponseHandler) DisplayLogoutConsentPage added in v0.7.0

func (c *CerberusPageResponseHandler) DisplayLogoutConsentPage(w http.ResponseWriter, r *http.Request)

func (*CerberusPageResponseHandler) DisplayLogoutStatusPage added in v0.7.0

func (c *CerberusPageResponseHandler) DisplayLogoutStatusPage(w http.ResponseWriter, r *http.Request)

type Crypto added in v0.2.0

type Crypto struct{}

func NewCrypto added in v0.2.0

func NewCrypto() *Crypto

func (*Crypto) DecryptText added in v0.2.0

func (*Crypto) DecryptText(ctx context.Context, cypherText string) (text string, err error)

func (*Crypto) EncryptText added in v0.2.0

func (*Crypto) EncryptText(ctx context.Context, text string) (cypherText string, err error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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