infra

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ProvideFiber

func ProvideFiber(lc fx.Lifecycle, config *Config) (*fiber.App, fiber.Router)

func ProvideGorm added in v1.0.0

func ProvideGorm(config *Config) (*gorm.DB, error)

Types

type Config added in v1.0.0

type Config struct {
	Address     string `env:"ADDRESS" envDefault:"0.0.0.0:7080"`
	Root        string `env:"ROOT" envDefault:"./arkwaifu-root"`
	PostgresDSN string `env:"POSTGRES_DSN"`
}

func ProvideConfig added in v1.0.0

func ProvideConfig() (*Config, error)

type NumericCollate added in v1.0.0

type NumericCollate struct {
}

func ProvideGormNumericCollate added in v1.0.0

func ProvideGormNumericCollate(db *gorm.DB) (*NumericCollate, error)

Jump to

Keyboard shortcuts

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