Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config interface { Context() context.Context StreamTimeout() time.Duration DrainTimeout() time.Duration Reporter() Reporter Logger() raftlog.Logger Dial() transport.Dial AllowPipelining() bool }
Config define common configuration used by the pool.
type Member ¶
type Member interface { ID() uint64 Address() string ActiveSince() time.Time IsActive() bool Update(m raftpb.Member) error Send(etcdraftpb.Message) error Type() raftpb.MemberType Raw() raftpb.Member Close() error TearDown(ctx context.Context) error }
Member represents a raft cluster member.
type Pool ¶
type Pool interface { NextID() uint64 Members() []Member Get(uint64) (Member, bool) Add(raftpb.Member) error Update(raftpb.Member) error Remove(raftpb.Member) error Snapshot() []raftpb.Member Restore([]raftpb.Member) RegisterTypeMatcher(func(raftpb.Member) raftpb.MemberType) TearDown(context.Context) error }
Pool represents a set of raft Members.
Click to show internal directories.
Click to hide internal directories.