handlers

package
v1.18.1 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2025 License: Apache-2.0 Imports: 33 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,
		messages.NewThirdPartyController,
		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
	MessagesHandler *messages.ThirdPartyController
	WebhooksHandler *webhooks.ThirdPartyController
	DevicesHandler  *devices.ThirdPartyController
	LogsHandler     *logs.ThirdPartyController

	AuthSvc *auth.Service

	Logger    *zap.Logger
	Validator *validator.Validate
}

Directories

Path Synopsis
middlewares

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳