probe

package
v0.6.0-beta.28 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2023 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetRequestBody added in v0.6.0

func GetRequestBody(operation string, args *fasthttp.Args) []byte

func NewProbeMiddleware

func NewProbeMiddleware(log logger.Logger) middleware.Middleware

NewProbeMiddleware returns a new probe middleware.

Types

type Middleware

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

Middleware is a probe middleware.

func (*Middleware) GetHandler

func (m *Middleware) GetHandler(metadata middleware.Metadata) (func(next fasthttp.RequestHandler) fasthttp.RequestHandler, error)

GetHandler returns the HTTP handler provided by the middleware.

type RequestMeta added in v0.6.0

type RequestMeta struct {
	Operation string            `json:"operation"`
	Metadata  map[string]string `json:"metadata"`
}

Jump to

Keyboard shortcuts

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