middleware

package
v0.0.0-...-5f28de8 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2022 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultContextErrKey = "paddle-event-middleware-error"
	DefaultContextKey    = "paddle-event-middleware"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Event

type Event struct {
	EventConfig
}

func (*Event) EventFromRequest

func (e *Event) EventFromRequest() func(req *http.Request) (events.Event, error)

func (*Event) Handle

func (e *Event) Handle(next http.Handler) http.Handler

type EventConfig

type EventConfig struct {
	Verifier        events.Verifier
	ContextKey      interface{}
	ContextErrKey   interface{}
	CopyBody        bool
	ContinueOnError bool
	SkipContext     bool
}

Jump to

Keyboard shortcuts

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