bonemux

package
v0.0.20 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2018 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMux

func NewMux() unimux.Mux

NewMux is an implementation based on go-zoo/bone

Types

type Mux

type Mux struct {
	// contains filtered or unexported fields
}

Router implementation using go-zoo/bone

func (*Mux) Close

func (mux *Mux) Close() error

Close and release the resources

func (*Mux) Get

func (mux *Mux) Get(path string, handler http.HandlerFunc) error

func (*Mux) GetHTTPHandler

func (mux *Mux) GetHTTPHandler() http.Handler

GetHTTPHandler returns a handler compatible with net/http

func (*Mux) Post

func (mux *Mux) Post(path string, handler http.HandlerFunc) error

Jump to

Keyboard shortcuts

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