Documentation ¶
Index ¶
- func StatusLive(echoContext echo.Context) error
- func StatusReady(c echo.Context) error
- type AppHandler
- func (h AppHandler) Auth(c echo.Context) error
- func (h AppHandler) AuthCallback(c echo.Context) error
- func (h AppHandler) AuthLogout(c echo.Context) error
- func (h AppHandler) CertificatePage(c echo.Context) error
- func (h AppHandler) CertificateRequest(c echo.Context) error
- func (h AppHandler) StatusConfig(c echo.Context) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func StatusLive ¶
StatusLive is a method that respond WORKING and is used to verify that the application is running (live)
func StatusReady ¶
StatusReady is a method which is used to verify that the application is able to receive data (ready)
Types ¶
type AppHandler ¶
type AppHandler struct {
// contains filtered or unexported fields
}
AppHandler is a struct that maintains persistence of objects used in handlers
func NewAppHandler ¶
func NewAppHandler(config viper.Viper, oauth2config oauth2.Config, oauth2provider oidc.Provider) *AppHandler
NewAppHandler return a new pointer of user struct
func (AppHandler) Auth ¶
func (h AppHandler) Auth(c echo.Context) error
Auth is a method that provides authentication flow using OpenID Connect
func (AppHandler) AuthCallback ¶
func (h AppHandler) AuthCallback(c echo.Context) error
AuthCallback is a method that provides authentication flow using OpenID Connect
func (AppHandler) AuthLogout ¶
func (h AppHandler) AuthLogout(c echo.Context) error
AuthLogout is a method that logout user expiring gsh cookie
func (AppHandler) CertificatePage ¶
func (h AppHandler) CertificatePage(c echo.Context) error
CertificatePage is a method that render a form
func (AppHandler) CertificateRequest ¶
func (h AppHandler) CertificateRequest(c echo.Context) error
CertificateRequest is a method that receive form data and send as JSON to gsh api
func (AppHandler) StatusConfig ¶
func (h AppHandler) StatusConfig(c echo.Context) error
StatusConfig is a method that respond WORKING and is used to verify that the application is running (live)