handlers

package
v1.16.1 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2024 License: Apache-2.0 Imports: 31 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

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
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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