infra

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2023 License: MIT Imports: 16 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"`
	Users       []User
}

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)

type User added in v1.1.0

type User struct {
	ID   uuid.UUID
	Name string
}

Jump to

Keyboard shortcuts

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