middleware

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get(name string) ctx.Handler

Get return a handler by name

func Handlers

func Handlers() []ctx.Handler

Handlers return registered handlers

func List

func List() (list []string)

List return names of handlers

func Register

func Register(name string, new func(*config.Config) ctx.Handler)

Register a middleware

func Setup

func Setup(cfg *config.Config) error

Setup handlers

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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