chimux

package
v0.0.36 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 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-chi/chi

Types

type Mux

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

Router implementation using go-chi/chi

func (*Mux) Close

func (mux *Mux) Close() error

Close and release the resources

func (*Mux) Delete added in v0.0.30

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

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) Head added in v0.0.30

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

func (*Mux) Options added in v0.0.30

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

func (*Mux) Patch added in v0.0.30

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

func (*Mux) Post

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

func (*Mux) Put added in v0.0.30

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

Jump to

Keyboard shortcuts

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