configuration

package
v1.0.7 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2019 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ConfigName     = "observer"
	ConfigType     = "yaml"
	ConfigFilePath = ConfigName + "." + ConfigType
)

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API struct {
	Addr string
}

type Configuration

type Configuration struct {
	API        API
	Replicator Replicator
	DB         DB
}

func Default

func Default() *Configuration

type Configurator

type Configurator interface {
	Actual() *Configuration
}

func Load

func Load() Configurator

type DB

type DB struct {
	URL          string
	CreateTables bool
}

type Replicator

type Replicator struct {
	Addr                  string
	MaxTransportMsg       int
	RequestDelay          time.Duration
	BatchSize             uint32
	TransactionRetryDelay time.Duration
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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