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 ¶ added in v1.7.0
type Config struct {
GatewayMode GatewayMode
}
type GatewayMode ¶ added in v1.7.0
type GatewayMode string
const ( GatewayModePrivate GatewayMode = "private" GatewayModePublic GatewayMode = "public" )
type ThirdPartyHandlerParams ¶ added in v1.6.0
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.