Documentation ¶
Index ¶
- Variables
- func ConfigureLogging()
- func ConfigurePrometheus()
- func ConfigureSentry(version string)
- func Load(file io.Reader) error
- func SetGitPath() error
- func StoragePath(storageName string) (string, bool)
- func Validate() error
- type Auth
- type Git
- type Logging
- type Prometheus
- type Ruby
- type Storage
- type Token
Constants ¶
This section is empty.
Variables ¶
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 ¶
Load initializes the Config variable from file and the environment.
Environment variables take precedence over the file.
func SetGitPath ¶ added in v0.18.0
func SetGitPath() error
SetGitPath populates the variable GitPath with the path to the `git` executable. It warns if no path was specified in the configuration.
func StoragePath ¶ added in v0.7.0
StoragePath looks up the base path for storageName. The second boolean return value indicates if anything was found.
Types ¶
type Git ¶ added in v0.18.0
type Git struct {
BinPath string `toml:"bin_path"`
}
Git contains the settings for the Git executable
type Prometheus ¶ added in v0.11.0
type Prometheus struct {
GRPCLatencyBuckets []float64 `toml:"grpc_latency_buckets"`
}
Prometheus contains additional configuration data for prometheus
type Ruby ¶ added in v0.26.0
type Ruby struct {
Dir string `toml:"dir"`
}
Ruby contains setting for Ruby worker processes