config

package
v0.1.0-alpha.6 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 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"`
	// ResourceLocation is the location where Arkwaifu puts its resources.
	// The "resources" include AVG images and backgrounds.
	//
	// There will be "{config.ResourceLocation}/{resVersion}" subdirectories under ResourceLocation, which are the
	// resources of the specified version.
	ResourceLocation string `env:"RESOURCE_LOCATION" envDefault:"./arkwaifu_resource"`

	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