config

package
v0.0.0-...-9613083 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2020 License: MIT Imports: 4 Imported by: 4

Documentation

Index

Constants

View Source
const (
	DefaultLANSerfPort = 8301
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	ID                            int32
	NodeName                      string
	DataDir                       string
	DevMode                       bool
	Addr                          string
	SerfLANConfig                 *serf.Config
	RaftConfig                    *raft.Config
	Bootstrap                     bool
	BootstrapExpect               int
	StartAsLeader                 bool
	StartJoinAddrsLAN             []string
	StartJoinAddrsWAN             []string
	NonVoter                      bool
	RaftAddr                      string
	LeaveDrainTime                time.Duration
	ReconcileInterval             time.Duration
	OffsetsTopicReplicationFactor int16
}

Config holds the configuration for a Config.

func DefaultConfig

func DefaultConfig() *Config

DefaultConfig creates/returns a default configuration.

Jump to

Keyboard shortcuts

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