Documentation
¶
Overview ¶
Package infrastructure provides core infrastructure components and their dependency injection setup.
Index ¶
Constants ¶
View Source
const (
// MinSecretLength is the minimum length required for security secrets
MinSecretLength = 32
)
Variables ¶
View Source
var Module = fx.Options( fx.Provide( echo.New, server.New, NewEventPublisher, database.New, ), )
Module provides infrastructure dependencies
Functions ¶
func AnnotateHandler ¶
AnnotateHandler is a helper function that simplifies the creation of handler providers
func NewEventPublisher ¶ added in v0.1.5
func NewEventPublisher(p EventPublisherParams) (formevent.Publisher, error)
NewEventPublisher creates a new event publisher with dependencies
Types ¶
type CoreParams ¶
type CoreParams struct { fx.In Config *config.Config Logger logging.Logger Renderer view.Renderer Echo *echo.Echo }
CoreParams groups core infrastructure dependencies
type EventPublisherParams ¶ added in v0.1.5
EventPublisherParams contains dependencies for creating an event publisher
Directories
¶
Path | Synopsis |
---|---|
Package logging provides a unified logging interface
|
Package logging provides a unified logging interface |
repository
|
|
Package version provides version information for the application.
|
Package version provides version information for the application. |
Package web provides utilities for handling web assets in the application.
|
Package web provides utilities for handling web assets in the application. |
Click to show internal directories.
Click to hide internal directories.