wired

package
v0.14.0-beta3 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2024 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ProvideClickhouseConfig

func ProvideClickhouseConfig(bootstrapLogger BootstrapLogger) config.Clickhouse

ProvideClickhouseConfig is a wire provider for config.Clickhouse.

func ProvideGrafanaConfig

func ProvideGrafanaConfig(bootstrapLogger BootstrapLogger) config.Grafana

ProvideGrafanaConfig is a wire provider for config.Server.

func ProvideLogger

func ProvideLogger(cfg config.Server) zerolog.Logger

ProvideLogger is a wire provider for StandardLogger.

func ProvideMinimalFiberConfig added in v0.10.0

func ProvideMinimalFiberConfig(
	cfg config.Server,
) fiber.Config

ProvideMinimalFiberConfig is a wire provider for fiber configuration.

func ProvideServerConfig

func ProvideServerConfig(bootstrapLogger BootstrapLogger) config.Server

ProvideServerConfig is a wire provider for config.Server.

Types

type App

type App struct {
	Config config.Server
	Fiber  *fiber.App
	Logger zerolog.Logger
	// contains filtered or unexported fields
}

func ProvideApp

func ProvideApp(cfg config.Server, app *fiber.App, logger zerolog.Logger, setup Setup) App

ProvideApp is a wire provider for App.

type BootstrapLogger

type BootstrapLogger zerolog.Logger

BootstrapLogger define zerolog loggers used before ProvideLogger.

type MinimalFiber

type MinimalFiber *fiber.App

func ProvideMinimalFiber

func ProvideMinimalFiber(
	accessLogMiddleware middlewares.AccessLog,
	errorHandlerMiddleware middlewares.ErrorHandler,
	fiberCfg fiber.Config,
	healthcheckHandler handlers.HealhCheck,
	loggerMiddleware middlewares.Logger,
	requestIdMiddleware middlewares.RequestId,
	staticMiddleware middlewares.Static,
) MinimalFiber

ProvideMinimalFiber is a wire provider for a minimally configured fiber.App with no route.

type Setup

type Setup struct{}

func ProvideSetup

func ProvideSetup() Setup

ProvideSetup is a wire provider for setup.

Jump to

Keyboard shortcuts

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