mux

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

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

Go to latest
Published: May 2, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Btos

func Btos(b []byte) string

func Stob

func Stob(s string) []byte

Stob converts a string to bytes without copying refer to go-redis/redis

Types

type Mux

type Mux interface {
	http.Handler
	Handle(string, http.Handler, ...string)
	HandleFunc(string, http.HandlerFunc, ...string)
	Use(...Wrapper)
}

func New

func New() Mux

type Param

type Param struct {
	Key, Value []byte
}

func (Param) String

func (p Param) String() string

type Params

type Params []Param

we probably don't need a map overhead

func Vars

func Vars(r *http.Request) Params

func (*Params) Get

func (ps *Params) Get(key string) string

type Wrapper

type Wrapper func(next http.Handler) http.Handler

Jump to

Keyboard shortcuts

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