Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNoRouters = errors.New("http: no server.Router is registered; register one with di.Define(NewRouter, di.Tag(http.RouterTag))")
View Source
var RouterTag = routerTag{}
Functions ¶
func NewHttpCommand ¶
Types ¶
type Global ¶ added in v1.11.0
type Global []server.Middleware
func NewGlobal ¶ added in v1.13.0
func NewGlobal(layers []server.Middleware) Global
type HttpCommand ¶
type InProcess ¶ added in v1.10.8
type InProcess struct {
URL string
Client *nethttp.Client
// contains filtered or unexported fields
}
func Serve ¶ added in v1.10.8
func Serve(mux server.Mux, global Global, routers []server.Router, wrap ...func(nethttp.Handler) nethttp.Handler) (*InProcess, error)
Setup is what the daemon calls too, so the routes and the middleware under test are the ones that ship. wrap goes around the whole server, outermost last.
Click to show internal directories.
Click to hide internal directories.