config

package
v0.0.0-...-ce5fb2d Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2022 License: MIT Imports: 4 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 {
	SpiceHost     string `env:"SPICE_DB_HOST" envDefault:"127.0.0.1"`
	SpicePort     int    `env:"SPICE_DB_PORT" envDefault:"3001"`
	NameSpaceFile string `env:"NAME_SPACE_FILE" envDefault:".config/namespace.txt"`
	NameSpace     string
	AuthnFile     string `env:"AUTHN_FILE" envDefault:".config/user.csv"`
	AuthnUsers    map[string]string
}

func New

func New() (*Config, error)

Jump to

Keyboard shortcuts

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