interceptor

package
v1.4.8 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InvokeInterceptors

func InvokeInterceptors(w http.ResponseWriter, req *http.Request) (err error)

func RegisterInterceptFunc

func RegisterInterceptFunc(intc Intercept)

Types

type Intercept

type Intercept func(http.ResponseWriter, *http.Request) error

func (Intercept) Name

func (f Intercept) Name() string

type Interception

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

func (Interception) Invoke

func (i Interception) Invoke(w http.ResponseWriter, req *http.Request) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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