config

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2018 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 AWSConfig

type AWSConfig struct {
	AccessKeyID     string
	SecretAccessKey string
	Concurrency     uint
}

AWSConfig contains all information needed to access AWS services

type Consulconfig

type Consulconfig struct {
	Addr     string
	KVPrefix string
}

type DBconfig

type DBconfig struct {
	Nodes             []string
	UseConsul         bool
	ConsulServiceName string
	DataCenters       []string
	Cluster           *gocql.ClusterConfig
	Datalayer         datalayer.DataLayer
	Keyspace          string
}

type Dockerconfig

type Dockerconfig struct {
	DockercfgVaultPath string
	DockercfgRaw       string
	DockercfgContents  map[string]dtypes.AuthConfig
}

func (*Dockerconfig) Setup

func (dc *Dockerconfig) Setup()

type Gitconfig

type Gitconfig struct {
	TokenVaultPath string
	Token          string // GitHub token
}

type Kafkaconfig

type Kafkaconfig struct {
	Brokers      []string
	Topic        string
	Manager      kafka.EventBusManager
	MaxOpenSends uint
}

type Serverconfig

type Serverconfig struct {
	HTTPSPort               uint
	GRPCPort                uint
	PPROFPort               uint
	HTTPSAddr               string
	GRPCAddr                string
	HealthcheckAddr         string
	Concurrency             uint
	Queuesize               uint
	VaultTLSCertPath        string
	VaultTLSKeyPath         string
	TLSCert                 []byte
	TLSKey                  []byte
	LogToSumo               bool
	SumoURL                 string
	VaultSumoURLPath        string
	HealthcheckHTTPport     uint
	S3ErrorLogs             bool
	S3ErrorLogBucket        string
	S3ErrorLogRegion        string
	S3PresignTTL            uint
	GCIntervalSecs          uint
	DockerDiskPath          string
	NewRelicAPIKeyVaultPath string
	NewRelicAPIKey          string
	EnableNewRelic          bool
	NewRelicApp             string
}

type Vaultconfig

type Vaultconfig struct {
	Addr            string
	Token           string
	TokenAuth       bool
	AppID           string
	UserIDPath      string
	VaultPathPrefix string
}

Jump to

Keyboard shortcuts

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