internalapi

package
v0.0.0-...-1ac4f16 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const TokenURLFormat = "%s?token=%s"

Variables

This section is empty.

Functions

func NewHandlerBuilder

func NewHandlerBuilder(globalMiddlewares []mux.MiddlewareFunc) *handlerBuilder

Types

type Config

type Config struct {
	Middlewares      []mux.MiddlewareFunc
	TokenManager     tokens.Creator
	CSRInfoURL       string
	ContextExtractor clientcontext.ConnectorClientExtractor
}

type TokenHandler

type TokenHandler interface {
	CreateToken(w http.ResponseWriter, r *http.Request)
}

func NewTokenHandler

func NewTokenHandler(tokenManager tokens.Creator, csrInfoURL string, connectorClientExtractor clientcontext.ConnectorClientExtractor) TokenHandler

Jump to

Keyboard shortcuts

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