middleware

package
v0.0.0-...-6470968 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OperationJoin = "join"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler func(ctx context.Context, req Request) (interface{}, error)

type Matcher

type Matcher interface {
	Use(ms ...Middleware)
	Add(selector string, ms ...Middleware)
	Match(operation string) []Middleware
}

func New

func New() Matcher

type Middleware

type Middleware func(Handler) Handler

func Chain

func Chain(m ...Middleware) Middleware

type Request

type Request struct {
	Operation string      `json:"operation"`
	Params    interface{} `json:"params"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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