structs

package
v0.0.0-...-29792f2 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Verbose bool
	Routes  []RouteConfig
}

Config ...

func (Config) String

func (c Config) String() string

type MiddlewareConfig

type MiddlewareConfig struct {
	Action string
	Params map[string]string
}

MiddlewareConfig ...

func (MiddlewareConfig) String

func (mw MiddlewareConfig) String() string

type RouteConfig

type RouteConfig struct {
	Pattern         string
	Middleware      []MiddlewareConfig
	CompiledPattern *regexp.Regexp
	Handler         http.Handler
}

RouteConfig ...

func (RouteConfig) String

func (rc RouteConfig) String() string

Jump to

Keyboard shortcuts

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