config

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2018 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Configuration

type Configuration struct {
	// Tenant represent tenant of given vault
	Tenant string
	// LakeHostname represent hostname of openbank lake service
	LakeHostname string
	// RootStorage gives where to store journals
	RootStorage string
	// LogOutput represents log output
	LogOutput string
	// LogLevel ignorecase log level
	LogLevel string
	// MetricsRefreshRate represents interval in which in memory metrics should be
	// persisted to disk
	MetricsRefreshRate time.Duration
	// MetricsOutput represents output file for metrics persistence
	MetricsOutput string
	// JournalSaturation represents number of events needed in account to consider
	// account snapshot in given version to be saturated
	JournalSaturation int
	// SnapshotScanInterval represents backoff between scan for saturated
	// snapshots
	SnapshotScanInterval time.Duration
}

Configuration of application

type Resolver

type Resolver interface {
	GetConfig() Configuration
}

Resolver loads config

func NewResolver

func NewResolver() Resolver

NewResolver provides config resolver

Jump to

Keyboard shortcuts

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