hashicorp

package
v0.0.0-...-1a43b3b Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRaft

func NewRaft(ctx context.Context, raftID, serverAddr string, fsm raft.FSM, raftDir string, isBootstrap bool) (iraft.Interface, error)

Types

type Raft

type Raft struct {
	// contains filtered or unexported fields
}

func (*Raft) Apply

func (s *Raft) Apply(key, data []byte, timeout time.Duration) (uint64, error)

func (*Raft) Peers

func (s *Raft) Peers() ([]string, error)

func (*Raft) RegisterGrpc

func (s *Raft) RegisterGrpc(srv *grpc.Server)

Jump to

Keyboard shortcuts

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