intercept

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2024 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HttpContext added in v0.1.0

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

func NewHttpContext added in v0.1.0

func NewHttpContext() *HttpContext

func (*HttpContext) Clear added in v0.1.0

func (hc *HttpContext) Clear()

func (*HttpContext) IsSkipResponse added in v0.1.0

func (hc *HttpContext) IsSkipResponse() bool

func (*HttpContext) Load added in v0.1.0

func (hc *HttpContext) Load(key string) (any, bool)

func (*HttpContext) LoadAndDelete added in v0.1.0

func (hc *HttpContext) LoadAndDelete(key string) (any, bool)

func (*HttpContext) SkipResponse added in v0.1.0

func (hc *HttpContext) SkipResponse()

func (*HttpContext) Store added in v0.1.0

func (hc *HttpContext) Store(key string, v any)

type HttpIntercept

type HttpIntercept interface {
	// HttpIntercept
	// if return true, indicating interception and not executing backwards
	Http(rw http.ResponseWriter, req *http.Request, ctx *HttpContext) bool
	Order() def.HandlerOrder
}

type MethodIntercept

type MethodIntercept interface {
	Invoke(m *def.MethodInfo, args []reflect.Value) []reflect.Value
}

Jump to

Keyboard shortcuts

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