v1

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2020 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SubAreas

func SubAreas(logger shared.Logger, osmContext context.Context, handler Handler) (*subAreasGroup, error)

SubAreas constructs the routing group itself.

Types

type Cache

type Cache interface {
	Add(key, value interface{})
	Get(key interface{}) (value interface{}, ok bool)
	Remove(key interface{})
}

Cache is the contract of cache.

type Handler

type Handler interface {
	Respond(w http.ResponseWriter, message string, data interface{})
	Abort(w http.ResponseWriter, message string, code int)
	Error(w http.ResponseWriter, err error, code int)
	Static(path string) string
}

Handler is the contract of an HTTP handler.

Jump to

Keyboard shortcuts

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