config

package
v0.28.3 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// overridden by the build system
	Version     = "dev"
	BuildCommit = ""
	BuildDate   = ""
)

Functions

func Init

func Init(configFile string) error

Types

type Frontier

type Frontier struct {
	// configuration version
	Version  int             `yaml:"version"`
	Log      logger.Config   `yaml:"log"`
	NewRelic NewRelic        `yaml:"new_relic"`
	App      server.Config   `yaml:"app"`
	DB       db.Config       `yaml:"db"`
	UI       server.UIConfig `yaml:"ui"`
	SpiceDB  spicedb.Config  `yaml:"spicedb"`
	Billing  billing.Config  `yaml:"billing"`
}

func Load

func Load(serverConfigFileFromFlag string) (*Frontier, error)

type NewRelic

type NewRelic struct {
	AppName string `yaml:"app_name" mapstructure:"app_name"`
	License string `yaml:"license" mapstructure:"license"`
	Enabled bool   `yaml:"enabled" mapstructure:"enabled"`
}

Jump to

Keyboard shortcuts

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