handlers

package
Version: v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2019 License: BSD-3-Clause Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StatusLive

func StatusLive(echoContext echo.Context) error

StatusLive is a method that respond WORKING and is used to verify that the application is running (live)

func StatusReady

func StatusReady(c echo.Context) error

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto