web

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

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

Go to latest
Published: Aug 28, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Adapt

func Adapt(h http.Handler, adapters ...Adapter) http.Handler

Adapt apply all adapters

func Print

func Print()

Print view of controllers factory map to console

func Register

func Register(name string, controller Controller)

Register new controller

func String

func String() string

String presents view of factory map

Types

type Adapter

type Adapter func(h http.Handler) http.Handler

Adapter functions type

func Notify

func Notify(logger *log.Logger) Adapter

Notify prints timestamps before and after controller call

type Controller

type Controller interface {
}

Controller for web resources

func Get

func Get(name string) (Controller, error)

Get named controller

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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