middlewares

package
v0.0.0-...-affaa53 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2019 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRuntimeURLsMiddleware

func NewRuntimeURLsMiddleware(gatewayBaseURL, lookupConfigPath string, lookupEnabled clientcontext.LookupEnabledType, extractor clientcontext.ApplicationContextExtractor, lookupService LookupService) *runtimeURLsMiddleware

func NewTokenResolverMiddleware

func NewTokenResolverMiddleware(tokenManager tokens.Manager, extenderConstructor ExtenderConstructor) *tokenResolverMiddleware

Types

type ExtenderConstructor

type ExtenderConstructor func() clientcontext.ContextExtender

type GraphQLLookupService

type GraphQLLookupService struct{}

func NewGraphQLLookupService

func NewGraphQLLookupService() *GraphQLLookupService

func (*GraphQLLookupService) Fetch

func (ls *GraphQLLookupService) Fetch(context clientcontext.ApplicationContext, configFilePath string) (string, error)

type Headers

type Headers map[string]string

type LookUpConfig

type LookUpConfig struct {
	URL     string
	Headers Headers
}

type LookupService

type LookupService interface {
	Fetch(context clientcontext.ApplicationContext, configFilePath string) (string, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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