middleware

package
v0.0.9-generics Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AllErrorsTeapot

func AllErrorsTeapot(statusCode *int, responseBody *[]byte, err error)

Types

type AuthNoop

type AuthNoop struct{}

func (AuthNoop) Authorization added in v0.0.9

func (self AuthNoop) Authorization(ctx context.Context, PeekHeader func(key string) []byte) (int, error)

type NoopLogConfig

type NoopLogConfig struct {
	*log.Config
}

func (*NoopLogConfig) Out

func (self *NoopLogConfig) Out() io.Writer

type ValidateNoopRequest

type ValidateNoopRequest struct {
}

func (ValidateNoopRequest) ValidateRequest

func (self ValidateNoopRequest) ValidateRequest(ctx context.Context, requestBodyBytes []byte) (int, error)

type ValidateNoopResponse

type ValidateNoopResponse struct {
}

func (ValidateNoopResponse) ValidateResponse

func (self ValidateNoopResponse) ValidateResponse(ctx context.Context, httpStatus int, responseBodyBytes []byte) (int, error)

Jump to

Keyboard shortcuts

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