Documentation
¶
Index ¶
- Constants
- func NewRaftStorage(id uint64, peerIds []uint)
- type ICloud
- type MemberInfo
- type Storage
- func (s *Storage) Benchmark(n int) error
- func (s *Storage) Delete(key string) error
- func (s *Storage) Get(key string) (interface{}, error)
- func (s *Storage) Info() ([]*MemberInfo, error)
- func (s *Storage) Load(path string) (err error)
- func (s *Storage) RegisterMember(name string, port int, join string)
- func (s *Storage) Save(path string) (err error)
- func (s *Storage) Set(key string, value interface{}) error
- func (s *Storage) UnpackNotify(b []byte)
Constants ¶
View Source
const ( ActionNone = 1 << iota ActionAdd ActionDel )
Variables ¶
This section is empty.
Functions ¶
func NewRaftStorage ¶
Types ¶
type MemberInfo ¶
type Storage ¶
type Storage struct { Name string LocalNode func() *memberlist.Node Members func() ([]*MemberInfo, error) // contains filtered or unexported fields }
func (*Storage) Info ¶
func (s *Storage) Info() ([]*MemberInfo, error)
func (*Storage) RegisterMember ¶
Click to show internal directories.
Click to hide internal directories.