middlewaretest

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRandomClaims

func NewRandomClaims() middleware.TumblerClaims

Types

type TestMiddleware

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

TestMiddleware - Handles injecting a session into a request for testing

func NewTestMiddleware

func NewTestMiddleware(time stime.TimeService, claims middleware.TumblerClaims, serviceName string) *TestMiddleware

NewTestMiddleware - Generates a default Middleware that always injects the specified Session into the request

func (*TestMiddleware) Handler

func (s *TestMiddleware) Handler(h http.Handler) http.Handler

Handler - Generates the handler you use to wrap the http routes

Jump to

Keyboard shortcuts

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