request

package
v2.26.3 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BeforeName = "request.before"
	AfterName  = "request.after"
)

Variables

This section is empty.

Functions

Types

type AfterEvent

type AfterEvent struct {
	Ctx   context.Context
	Req   any
	Reply any
	Err   error
	From  From
}

func (*AfterEvent) Event added in v2.10.0

func (a *AfterEvent) Event() any

type BeforeEvent

type BeforeEvent struct {
	Ctx  context.Context
	Req  any
	From From
}

func (*BeforeEvent) Event added in v2.10.0

func (b *BeforeEvent) Event() any

type From

type From string
const (
	FromClient From = "client"
	FromServer From = "server"
)

Jump to

Keyboard shortcuts

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