Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Address string `env:"ADDRESS" envDefault:"0.0.0.0:7080"` // ResourceDir is where Arkwaifu puts resource files. // // The resource files are the raw resources from the game. Including raw assets, raw gamedata, etc. // The resource files are safe to remove, as long as Arkwaifu is not running. // "{ResourceDir}/{resVersion}" subdirectories are the resources of the specified version. ResourceDir string `env:"RESOURCE_DIR" envDefault:"./arkwaifu_resource"` // StaticDir is where Arkwaifu puts static files. // // The static files are produced by the resources. Including webp resources, super-resolution resources, etc. // Normally, Arkwaifu will not change the content of existing static files, unless a breaking change is made. StaticDir string `env:"STATIC_DIR" envDefault:"./arkwaifu_static"` PostgresDSN string `env:"POSTGRES_DSN"` }
func ProvideConfig ¶
Click to show internal directories.
Click to hide internal directories.