Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Module = fx.Module( "handlers", fx.Decorate(func(log *zap.Logger) *zap.Logger { return log.Named("handlers") }), fx.Provide( http.AsRootHandler(newRootHandler), http.AsApiHandler(newThirdPartyHandler), http.AsApiHandler(newMobileHandler), http.AsApiHandler(newUpstreamHandler), ), fx.Provide( newHealthHandler, webhooks.NewThirdPartyController, webhooks.NewMobileController, devices.NewThirdPartyController, logs.NewThirdPartyController, fx.Private, ), )
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
GatewayMode GatewayMode
}
type GatewayMode ¶
type GatewayMode string
const ( GatewayModePrivate GatewayMode = "private" GatewayModePublic GatewayMode = "public" )
type ThirdPartyHandlerParams ¶
type ThirdPartyHandlerParams struct { fx.In HealthHandler *healthHandler WebhooksHandler *webhooks.ThirdPartyController DevicesHandler *devicesCtrl.ThirdPartyController LogsHandler *logs.ThirdPartyController AuthSvc *auth.Service MessagesSvc *messages.Service DevicesSvc *devices.Service Logger *zap.Logger Validator *validator.Validate }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.