handlers

package
v0.0.0-...-8fe0c81 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2022 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthHandler

type AuthHandler struct {
	BaseHandler
	Providers providers.ProviderChain
}

func (*AuthHandler) ServeAuthenticatedHTTP

func (this *AuthHandler) ServeAuthenticatedHTTP(response http.ResponseWriter, request *http.Request, fn func(user tokenapi.UserDesc))

type BaseHandler

type BaseHandler struct {
	Logger      logr.Logger
	TokenBasket token.TokenBasket
	RequestId   int
}

func (*BaseHandler) HttpClose

func (this *BaseHandler) HttpClose(response http.ResponseWriter, message string, httpCode int)

func (*BaseHandler) HttpError

func (this *BaseHandler) HttpError(response http.ResponseWriter, message string, httpCode int)

func (*BaseHandler) LookupClient

func (this *BaseHandler) LookupClient(client proto_v2.AuthClient) (clientId string)

func (*BaseHandler) ServeJSON

func (this *BaseHandler) ServeJSON(response http.ResponseWriter, data interface{})

Each REST call must be concluded by one of these function

Directories

Path Synopsis
auth
v2
awh
v2

Jump to

Keyboard shortcuts

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