Documentation
¶
Overview ¶
Package bootstrap provides the boot-time infrastructure providers.
Index ¶
- func DatabaseHealthCheck(data *Data) registry.HealthCheck
- func Heartbeat(log *slog.Logger) job.Fn
- func MigrateCommand(m *migrate.Migrator) *cli.Command
- func NewBus(log *slog.Logger) event.Bus
- func NewCron(log *slog.Logger, jobs registry.Jobs) (*cron.Cron, error)
- func NewCrypter(config *conf.Config) (crypt.Crypter, error)
- func NewLogger(config *conf.Config) (*slog.Logger, func() error, error)
- func NewMigrate(db *rio.DB, c *migrate.Collection, log *slog.Logger) (*migrate.Migrator, error)
- func NewSession(config *conf.Config, log *slog.Logger, db *rio.DB) (*sessions.Manager, func() error, error)
- func NewValidator(config *conf.Config) (*validator.Validator, error)
- func ProvideDB(data *Data) *rio.DB
- type Data
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DatabaseHealthCheck ¶
func DatabaseHealthCheck(data *Data) registry.HealthCheck
func NewCrypter ¶
NewCrypter builds the crypter for encrypting values at rest.
func NewMigrate ¶
func NewSession ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.