middlewares

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CompleteAction

func CompleteAction(name HandlerName, action Action) string

Types

type Action

type Action string
var (
	Add    Action = "Add"
	Delete Action = "Delete"
	Update Action = "Update"
	Get    Action = "Get"
	List   Action = "List"
)

type Handler

type Handler interface {
	Name() HandlerName
	http.Handler
}

type HandlerName

type HandlerName string
var (
	LoadBalancer HandlerName = "LoadBalancer"
	Logger       HandlerName = "Logger"
	RateLimiter  HandlerName = "RateLimiter"
	Recovery     HandlerName = "Recovery"
	Switcher     HandlerName = "Switcher"
	Cross        HandlerName = "Cross"
)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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