config

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2020 License: Apache-2.0 Imports: 12 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 {
	KeyPair       tls.Certificate
	Pool          *x509.CertPool
	Init          *Init   // Initialization parameters, for new servers.
	Address       string  // Server address
	Update        *Update // Configuration updates
	FailureDomain uint64
}

Config holds the server configuraton loaded from disk.

func Load

func Load(dir string) (*Config, error)

Load current the configuration from disk.

type Init

type Init struct {
	Address string
	Cluster []string
}

Init holds all information needed to initialize a server.

type Update

type Update struct {
	Address string
}

Update holds configuration updates.

Jump to

Keyboard shortcuts

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