modules

package
v0.0.0-...-9ca6001 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2019 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(name string, fun HandlerFunc)

Types

type HandlerConfig

type HandlerConfig struct {
	Router
}

func (*HandlerConfig) UnmarshalJSON

func (h *HandlerConfig) UnmarshalJSON(data []byte) error

type HandlerFunc

type HandlerFunc func(config []byte) (Router, error)

type Router

type Router interface {
	Handler(ctx *fasthttp.RequestCtx)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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