handler

package
v0.0.0-...-6b367db Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2022 License: GPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Error

func Error(err error, code int) error

func ErrorHandler

func ErrorHandler(handler errorHandlerFunc, log handlerLogger) http.HandlerFunc

func JSON

func JSON(w http.ResponseWriter, data interface{}) error

func New

func New(signalChan chan os.Signal, log handlerLogger, client *http.Client, tokenStorage token.Storage, secretKey []byte, clientID, ssoSecret string, callbackURL string, scopes []string) http.Handler

New constructs new API http handler.

Types

This section is empty.

Jump to

Keyboard shortcuts

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