config

package
v0.6.30 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2024 License: Apache-2.0 Imports: 16 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(resourcesURL, rulesURL, configFile string) error

Types

type ActivityLogConfig added in v0.6.17

type ActivityLogConfig struct {
	// activity sink strategy - db, stdout, none
	Sink string `yaml:"sink" mapstructure:"sink" default:"none"`
}

type Log added in v0.6.17

type Log struct {
	// log level - debug, info, warning, error, fatal
	Level string `yaml:"level" mapstructure:"level" default:"info"`

	// format strategy - plain, json
	Format string `yaml:"format" mapstructure:"format" default:"json"`

	Activity ActivityLogConfig `yaml:"activity" mapstructure:"activity"`
}

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"`
}

type Shield

type Shield struct {
	// configuration version
	Version   int                  `yaml:"version"`
	Proxy     proxy.ServicesConfig `yaml:"proxy"`
	Log       Log                  `yaml:"log"`
	NewRelic  NewRelic             `yaml:"new_relic"`
	App       server.Config        `yaml:"app"`
	DB        db.Config            `yaml:"db"`
	SpiceDB   spicedb.Config       `yaml:"spicedb"`
	Telemetry telemetry.Config     `yaml:"telemetry"`
}

func Load

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

Jump to

Keyboard shortcuts

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