test

package
v0.0.0-...-cb7f019 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2021 License: BSD-3-Clause Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EnvConfig

type EnvConfig struct {
	AuthToken string `env:"AUTH_TOKEN,required"`
}

func Env

func Env() *EnvConfig

type Mock

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

func NewMock

func NewMock() *Mock

func (*Mock) APIGatewayHeaders

func (m *Mock) APIGatewayHeaders(next http.Handler) http.Handler

func (*Mock) Authentication

func (m *Mock) Authentication(authToken string) map[string]string

Standalone func for testing.

Jump to

Keyboard shortcuts

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