raft

package
v0.0.0-...-74c85ca Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(opt *Option, ts task.Tasks, lg io.Writer) (*raft.Raft, error)

New app raft

Types

type Option

type Option struct {
	NodeID    string
	DataDir   string
	Bind      string
	Bootstrap bool
}

Option is the config struct

func NewOption

func NewOption() *Option

NewOption returns raft config instance

Jump to

Keyboard shortcuts

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