Documentation
¶
Index ¶
- type EndpointModular
- type HandlerBuilder
- type HandlerMounter
- type Mounter
- func (m *Mounter) Handler() http.Handler
- func (m *Mounter) Mount(e EndpointModular)
- func (m *Mounter) MountEndpoint(builder HandlerBuilder, mounter HandlerMounter, endpoint goa.Endpoint, ...)
- func (m *Mounter) ServeHTTP(w http.ResponseWriter, r *http.Request)
- func (m *Mounter) Use(middleware func(http.Handler) http.Handler)
- type Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EndpointModular ¶
type EndpointModular struct { Builder HandlerBuilder Mounter HandlerMounter Endpoint goa.Endpoint EndpointMiddleware []middleware }
type HandlerBuilder ¶
type HandlerBuilder func(goa.Endpoint, goahttp.Muxer, decoder, encoder, errorHandler, formatter) http.Handler
HandlerBuilder represents the goa http handler builder.
type HandlerMounter ¶
HandlerMounter represents the goa http handler mounter.
type Mounter ¶
type Mounter struct { Mux goahttp.Muxer Middleware []middleware Decoder decoder Encoder encoder ErrorHandler errorHandler Formatter formatter ClientOptions []httpcheck.Option }
Mounter represents Goa v3 handler mounter.
func NewMounter ¶
NewMounter constructs a mounter of the goa endpoints.
func (*Mounter) Mount ¶
func (m *Mounter) Mount(e EndpointModular)
func (*Mounter) MountEndpoint ¶
func (m *Mounter) MountEndpoint(builder HandlerBuilder, mounter HandlerMounter, endpoint goa.Endpoint, middlewares ...middleware)
MountEndpoint mounts an endpoint handler and it's middleware.
Click to show internal directories.
Click to hide internal directories.