Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAuthMiddleware ¶
Types ¶
type Middleware ¶
Middleware is an interface to allow the use of ordinary functions as API filters. Any struct that has the appropriate signature can be registered as a middleware.
type VersionMiddleware ¶
VersionMiddleware is a middleware that validates the client and server versions.
func NewVersionMiddleware ¶
func NewVersionMiddleware(broker *broker.Broker) VersionMiddleware
NewVersionMiddleware creates a new VersionMiddleware with the default versions
func (VersionMiddleware) WrapHandler ¶
func (m VersionMiddleware) WrapHandler(handler httputils.APIFunc) httputils.APIFunc
WrapHandler returns a new handler function wrapping the previous one in the request chain
Click to show internal directories.
Click to hide internal directories.