config

package
v0.7.8 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2023 License: Apache-2.0 Imports: 14 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"`
	SpiceDB  spicedb.Config `yaml:"spicedb"`
}

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