server

package
v0.0.124 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2017 License: Apache-2.0 Imports: 15 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAuthenticationHandler

func NewAuthenticationHandler(tokenValidator TokenValidator, nextHandler http.Handler) http.Handler

func NewRequestHandler

func NewRequestHandler(store store.Store, valueGeneratorFactory types.ValueGeneratorFactory) (http.Handler, error)

func NewX509Loader added in v0.0.118

func NewX509Loader(store store.Store) types.CertsLoader

Types

type ConfigServer

type ConfigServer interface {
	Start() error
}

func NewConfigServer

func NewConfigServer(config config.ServerConfig) ConfigServer

type JwtTokenValidator

type JwtTokenValidator struct {
	// contains filtered or unexported fields
}

func NewJWTTokenValidatorWithKey added in v0.0.101

func NewJWTTokenValidatorWithKey(verificationKey *rsa.PublicKey) JwtTokenValidator

func NewJwtTokenValidator

func NewJwtTokenValidator(jwtVerificationKeyPath string) (JwtTokenValidator, error)

func (JwtTokenValidator) Validate

func (j JwtTokenValidator) Validate(tokenStr string) error

type TokenValidator

type TokenValidator interface {
	Validate(token string) error
}

Directories

Path Synopsis
This file was generated by counterfeiter This file was generated by counterfeiter
This file was generated by counterfeiter This file was generated by counterfeiter

Jump to

Keyboard shortcuts

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