probe

package
v0.7.0-alpha.8 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 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

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

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