config

package
v0.11.1 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2017 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Config stores the global configuration
	Config config
)

Functions

func ConfigureLogging added in v0.11.0

func ConfigureLogging()

ConfigureLogging uses the global conf and environmental vars to configure the logged

func ConfigurePrometheus added in v0.11.0

func ConfigurePrometheus()

ConfigurePrometheus uses the global configuration to configure prometheus

func ConfigureSentry added in v0.11.0

func ConfigureSentry(version string)

ConfigureSentry configures the sentry DSN

func Load

func Load(file io.Reader) error

Load initializes the Config variable from file and the environment.

Environment variables take precedence over the file.

func StoragePath added in v0.7.0

func StoragePath(storageName string) (string, bool)

StoragePath looks up the base path for storageName. The second boolean return value indicates if anything was found.

func ValidateStorages added in v0.7.0

func ValidateStorages() error

ValidateStorages checks for pathological values in Config.Storages

Types

type Logging added in v0.11.0

type Logging struct {
	Format    string
	SentryDSN string `toml:"sentry_dsn"`
}

Logging contains the logging configuration for Gitaly

type Prometheus added in v0.11.0

type Prometheus struct {
	GRPCLatencyBuckets []float64 `toml:"grpc_latency_buckets"`
}

Prometheus contains additional configuration data for prometheus

type Storage

type Storage struct {
	Name string
	Path string
}

Storage contains a single storage-shard

Jump to

Keyboard shortcuts

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