config

package
v0.0.0-...-d6856c1 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2020 License: Apache-2.0 Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIClientConfig

type APIClientConfig struct {
	URL                     string
	AuthURL                 string
	ID, Password            string
	DomainID, ProjectID     string
	DomainName, ProjectName string
	Insecure                bool
}

APIClientConfig is the configuration for intent compiler's REST API client.

type Config

type Config struct {
	DefaultCfg      DefaultConfig
	EtcdNotifierCfg EtcdNotifierConfig
	APIClientConfig APIClientConfig
	PluginCfg       PluginConfig
	PluginNames     []string
}

Config object.

func ReadConfig

func ReadConfig() Config

ReadConfig gets configuration from Viper and logs its values.

type DefaultConfig

type DefaultConfig struct {
	PluginDirectory string
	NumberOfWorkers int
	MaxJobQueueLen  int
}

DefaultConfig section.

type EtcdNotifierConfig

type EtcdNotifierConfig struct {
	EtcdServers      []string
	WatchPath        string
	MsgQueueLockTime int
	MsgIndexString   string
	ReadLockString   string
	MasterElection   bool
}

EtcdNotifierConfig section.

type PluginConfig

type PluginConfig struct {
	Handlers map[string]interface{}
}

PluginConfig section.

Jump to

Keyboard shortcuts

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