Documentation
¶
Index ¶
- type ChangeLeaderNotification
- type Raft
- func (r *Raft) BootstrapCluster() error
- func (r *Raft) GracefulShutdown() error
- func (r *Raft) Leader() raft.ServerAddress
- func (r *Raft) LeaderNotificationsCh() <-chan ChangeLeaderNotification
- func (r *Raft) LocalID() string
- func (r *Raft) Servers() ([]raft.Server, error)
- func (r *Raft) SyncApply(command []byte) (interface{}, error)
- type StreamLayer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Raft ¶
type Raft struct {
// contains filtered or unexported fields
}
func (*Raft) BootstrapCluster ¶
func (*Raft) GracefulShutdown ¶
func (*Raft) Leader ¶
func (r *Raft) Leader() raft.ServerAddress
func (*Raft) LeaderNotificationsCh ¶
func (r *Raft) LeaderNotificationsCh() <-chan ChangeLeaderNotification
type StreamLayer ¶
func (*StreamLayer) Dial ¶
func (r *StreamLayer) Dial(address raft.ServerAddress, timeout time.Duration) (net.Conn, error)
Click to show internal directories.
Click to hide internal directories.