config

package
v0.0.0-...-b3b119b Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2022 License: MIT Imports: 2 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 {
	Port string `default:"8080" envconfig:"PORT"`

	CIFilename          string `default:".ci.yaml" envconfig:"CI_FILENAME"`
	StaticRootDir       string `default:"./web/" envconfig:"STATIC_ROOT_DIR"`
	RepositoriesDir     string `default:"./.cache/git/" envconfig:"REPOSITORIES_DIR"`
	ContainerWorkingDir string `default:"/ci" envconfig:"CONTAINER_WORKING_DIR"`

	SQLite struct {
		Path   string `default:"./sqlite.db" envconfig:"SQLITE_PATH"`
		Schema string `envconfig:"SQLITE_SCHEMA"`
	}
}

func Load

func Load() (cfg Config, _ error)

Jump to

Keyboard shortcuts

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