MCPcopy Create free account
hub / github.com/goadesign/goa / Use

Method Use

http/server.go:25–29  ·  view source on GitHub ↗

Use wraps the servers with the given middleware.

(m func(http.Handler) http.Handler)

Source from the content-addressed store, hash-verified

23
24// Use wraps the servers with the given middleware.
25func (s Servers) Use(m func(http.Handler) http.Handler) {
26 for _, v := range s {
27 v.Use(m)
28 }
29}
30
31// Mount will go through all the servers and mount them into the Muxer. It will
32// panic unless all servers satisfy the Mounter interface.

Callers

nothing calls this directly

Calls 1

UseMethod · 0.65

Tested by

no test coverage detected