Documentation ¶
Index ¶
- Variables
- func BuildHealthRoutes(in HealthRoutesIn)
- func BuildMetricsRoutes(in MetricsRoutesIn)
- func BuildPrimaryRoutes(router PrimaryRouter, pin PostRoutesIn, gin GetRoutesIn, din DeleteRoutesIn, ...)
- func ProvideServerChainFactory(in ServerChainIn) xhttpserver.ChainFactory
- type DeleteRoutesIn
- type GetAllRoutesIn
- type GetRoutesIn
- type HandlerIn
- type HandlerOut
- type HealthRoutesIn
- type MetricsRoutesIn
- type PostEventRouteIn
- type PostRoutesIn
- type PrimaryRouter
- type PutRoutesIn
- type ServerChainIn
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ServerLabel = "Mimisbrunnr"
)
Functions ¶
func BuildHealthRoutes ¶
func BuildHealthRoutes(in HealthRoutesIn)
BuildHealthRoutes sets up health handler
func BuildMetricsRoutes ¶
func BuildMetricsRoutes(in MetricsRoutesIn)
BuildMetricsRoutes sets up metrics handler
func BuildPrimaryRoutes ¶
func BuildPrimaryRoutes(router PrimaryRouter, pin PostRoutesIn, gin GetRoutesIn, din DeleteRoutesIn, puin PutRoutesIn, gain GetAllRoutesIn, pein PostEventRouteIn)
BuildPrimaryRoutes sets up all endpoint handlers for application
func ProvideServerChainFactory ¶
func ProvideServerChainFactory(in ServerChainIn) xhttpserver.ChainFactory
ProvideServerChainFactory returns ChainFactory needed to set up primary server
Types ¶
type DeleteRoutesIn ¶
type GetAllRoutesIn ¶
type HandlerIn ¶
type HandlerIn struct { fx.In Registry *registry.Registry Manager *manager.Manager EventParser *eventParser.EventParser }
HandlerIn is the set of dependencies for this package's components
type HandlerOut ¶
type HandlerOut struct { fx.Out PostKeyHandler http.Handler `name:"postHandler"` GetKeyHandler http.Handler `name:"getHandler"` DeleteKeyHandler http.Handler `name:"deleteHandler"` GetAllKeyHandler http.Handler `name:"getAllHandler"` PutKeyHandler http.Handler `name:"putHandler"` EventsKeyHandler http.Handler `name:"eventHandler"` }
HandlerOut is the set of components emitted by this package
func Provide ¶
func Provide(in HandlerIn) HandlerOut
Provide is an uber/fx style provider for this package's components
type HealthRoutesIn ¶
type MetricsRoutesIn ¶
type PostEventRouteIn ¶
type PrimaryRouter ¶
type ServerChainIn ¶
type ServerChainIn struct { fx.In RequestCount *prometheus.CounterVec `name:"server_request_count"` RequestDuration *prometheus.HistogramVec `name:"server_request_duration_ms"` RequestsInFlight *prometheus.GaugeVec `name:"server_requests_in_flight"` AuthChain *alice.Chain `name:"auth_chain"` }
ServerChainIn is the set of dependencies for this package's components
Click to show internal directories.
Click to hide internal directories.