env

package
v0.0.0-...-f266d1f Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Process

func Process() error

Process the environment variables set for caesium.

Types

type Environment

type Environment struct {
	LogLevel            string   `default:"info" split_words:"true"`
	Port                int      `default:"8080"`
	DockerHost          string   `default:"" split_words:"true"`
	KubernetesConfig    string   `default:"" split_words:"true"`
	KubernetesNamespace string   `default:"default" split_words:"true"`
	PodmanURI           string   `default:"" split_words:"true"`
	NodeAddress         string   `default:"127.0.0.1:9001" split_words:"true"`
	DatabaseNodes       []string `default:"" split_words:"true"`
	DatabasePath        string   `default:"/opt/caesium/dqlite" split_words:"true"`
	DatabaseType        string   `default:"internal" split_words:"true"`
	DatabaseDSN         string   `default:"host=postgres user=postgres password=postgres dbname=caesium port=5432 sslmode=disable" split_words:"true"`
}

Environment defines the environment variables used by caesium.

func Variables

func Variables() Environment

Variables returns the processed environment variables.

Jump to

Keyboard shortcuts

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