Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewSubrouter ¶
func NewSubrouter(r *mux.Route, ms ...middlewares.HTTPMiddleware) *mux.Router
NewSubrouter returns new router given route and set of middleware. Useful when you would like a subset of routes that are wrapped in a specific set of middleware. Eg. you would some routes to require authetication while others you would not.
Types ¶
type APId ¶
type APId struct {
Authenticator *authentication.Authenticator
HTTPServer *http.Server
CoreSubrouter *mux.Router
GraphQLSubrouter *mux.Router
// contains filtered or unexported fields
}
APId is the backend HTTP API.
type Config ¶
type Config struct {
ListenAddress string
URL string
Bus messaging.MessageBus
Store store.Store
EventStore store.EventStore
QueueGetter types.QueueGetter
TLS *types.TLSOptions
Cluster clientv3.Cluster
EtcdClientTLSConfig *tls.Config
Authenticator *authentication.Authenticator
ClusterVersion string
}
Config configures APId.
type WrappedRouter ¶
WrappedRouter is equivelant to mux.Router with the addition that any time it handles a request the given middleware stack is applied first.
func (*WrappedRouter) Match ¶
func (r *WrappedRouter) Match(req *http.Request, match *mux.RouteMatch) bool
Match matches registered routes against the request.
Click to show internal directories.
Click to hide internal directories.