config

package
v0.6.0-next.7 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Config is a struct that provides all covey configuration details.
	//revive:disable:line-length-limit
	//nolint:lll
	Config = struct {
		Daemon struct {
			Host string `` // TODO: Use hostname by default
			/* 133-byte string literal not displayed */
			Port string `default:"8080" flag:"port||Port to expose the covey daemon on. (default '8080')" env:"COVEY_PORT" validate:"number,required"`
		}
		DB struct {
			Username string `` /* 168-byte string literal not displayed */
			Password string `default:"" flag:"postgres-password||The password used to login to the postgres database." env:"COVEY_POSTGRES_PASSWORD"`
			Host     string `` /* 144-byte string literal not displayed */
			Port     string `default:"5432" flag:"postgres-port||The Postgres port. (default '5432')" env:"COVEY_POSTGRES_PORT" validate:"required,number"`
			Database string `default:"covey" flag:"postgres-database||The database. (default 'covey')" env:"COVEY_POSTGRES_DATABASE" validate:"required"`
		}
		Plugins struct {
			PluginsFolder      string `` /* 155-byte string literal not displayed */
			PluginsCacheFolder string `` /* 172-byte string literal not displayed */
		}
	}{}
)

Functions

func InitConfig

func InitConfig() error

InitConfig initializes the configuration values.

Types

This section is empty.

Jump to

Keyboard shortcuts

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