Documentation ¶
Index ¶
- func SetDebug(w io.Writer)
- type Command
- type Config
- type Op
- type Raft
- func (r *Raft) Barrier() error
- func (r *Raft) Config() raft.Configuration
- func (r *Raft) Delete(key string) error
- func (r *Raft) Get(key string) (string, error)
- func (r *Raft) IsLeader() bool
- func (r *Raft) Join(id, addr string) error
- func (r *Raft) LocalID() string
- func (r *Raft) Set(key, value string) error
- type RaftLayer
- type RaftRPC
- type Store
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type RaftLayer ¶
type RaftLayer struct {
// contains filtered or unexported fields
}
func NewRaftLayer ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.