multi

package
v0.7.4 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNotHandler = fmt.Errorf("not handler")
)

Functions

func NewMultiWithConfig

func NewMultiWithConfig(conf *Config) (http.Handler, error)

Types

type Config

type Config struct {
	Multi []http.Handler
}

type Multi

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

func NewMulti

func NewMulti(multi []http.Handler) *Multi

func (*Multi) ServeHTTP

func (m *Multi) ServeHTTP(rw http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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