config

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2017 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClusterState added in v0.9.0

type ClusterState struct {
	ActiveNodes   []Node
	InactiveNodes []Node
}

type Command

type Command struct {
	Op    string `json:"op,omitempty"`
	Key   string `json:"key,omitempty"`
	Value string `json:"value,omitempty"`
}

type Node added in v0.9.0

type Node struct {
	IP   string
	Port int
}

type RaftConfig

type RaftConfig struct {
	Bind             string   `json:"bind"`
	Seeds            []string `json:"seeds"`
	DataDir          string   `json:"data"`
	EnableSingleNode bool     `json:"enable_single_node"`
}

func (*RaftConfig) Init

func (module *RaftConfig) Init()

Jump to

Keyboard shortcuts

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