config

package
v0.0.0-...-fe81f67 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	NodeID               string `config:"id"`
	Dir                  string `config:"dir"`
	JoinAddr             string `config:"join"`
	FlushInterval        uint64 `config:"flush_interval"`
	SnapshotInterval     int    `config:"snapshot_interval"`
	DefaultDwell         uint64 `config:"dwell"`
	DefaultDwellDeadline uint64 `config:"dwell_deadline"`
	DefaultMaxDwell      uint64 `config:"max_dwell"`
	MaxHistory           int    `config:"max_history"`
	Version              string `config:"version"`
	Commit               string `config:"commit"`
	Date                 string `config:"date"`
	EnableFileServer     bool

	RaftAddr     string
	HTTPAddr     string
	RaftListener net.Listener
	HTTPListener net.Listener
}

Config is required for initializing the service

func (*Config) Validate

func (c *Config) Validate() error

Validate the config

Jump to

Keyboard shortcuts

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