handlers

package
v1.13.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 3, 2024 License: Apache-2.0 Imports: 28 Imported by: 0

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
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL