raft

package
v0.0.0-...-85cd7ee Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ProvideTransport

func ProvideTransport(i *do.Injector) (*transport.Manager, error)

Types

type Raft

type Raft struct {
	*raft.Raft
	// contains filtered or unexported fields
}

func NewRaft

func NewRaft(ctx context.Context, isSingleNode bool, dir string, cfg *config.Config, tm *transport.Manager, fsm raft.FSM) (*Raft, error)

func Provide

func Provide(i *do.Injector) (*Raft, error)

func (*Raft) Error

func (r *Raft) Error() error

func (*Raft) Join

func (r *Raft) Join()

Jump to

Keyboard shortcuts

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