infra

package
v0.0.0-...-485fe8d Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2026 License: MIT Imports: 33 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Coldstore

func Coldstore(lc fx.Lifecycle, conf *appconfig.Config) (*coldstore.Reader, error)

Coldstore opens the local cold storage when it is enabled, and fails the startup when its files are not all there (see coldstore.OpenReader). It returns nil when the cold storage is disabled: users must check.

func Datadog

func Datadog(conf *appconfig.Config, lc fx.Lifecycle)

func GeoIPDatabase

func GeoIPDatabase(conf *appconfig.Config) (*geoip2.Reader, error)

func Module

func Module() fx.Option

func NATSOptions

func NATSOptions() []nats.Option

NATSOptions are the options of the NATS connection of the app.

func Postgres

func Postgres(conf *appconfig.Config) (*bun.DB, error)

func RedSync

func RedSync(client *goredislib.Client) *redsync.Redsync

func Redis

func Redis(conf *appconfig.Config) (*redis.Client, error)

func SentryInit

func SentryInit(conf *appconfig.Config) error

SentryInit initializes sentry with side effect

Types

This section is empty.

Jump to

Keyboard shortcuts

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