routes

package
v0.0.0-...-6b385f4 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(container *dig.Container) error

func WriteData

func WriteData(req *http.Request, log *slog.Logger, writer io.Writer, data []byte)

Types

type Group

type Group struct {
	dig.Out

	Mount MountFunc `group:"server"`
}

func NewHealthCheckRoutesGroup

func NewHealthCheckRoutesGroup(deps HealthCheckDeps) Group

func NewItemsRoutesGroup

func NewItemsRoutesGroup(deps ItemsRoutesDeps) Group

type HealthCheckDeps

type HealthCheckDeps struct {
	dig.In

	RootLogger *slog.Logger
}

type ItemsRoutesDeps

type ItemsRoutesDeps struct {
	dig.In

	RootLogger *slog.Logger

	// app layer
	Commands ingestionCommands
	Queries  aggregationQueries

	// service layer
	Time services.TimeProvider
}

type MountFunc

type MountFunc func(r router)

Jump to

Keyboard shortcuts

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