config

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: May 3, 2022 License: MIT Imports: 1 Imported by: 0

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

func ProvideConfig() (*Config, error)

Jump to

Keyboard shortcuts

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