Documentation ¶
Index ¶
- Variables
- func ConfigMultiThread() error
- func ConfigSingleThread() error
- func GenerateID(address string) uint64
- type Node
- func (s *Node) Close()
- func (s *Node) DescribeLastEntry() (uint64, uint64, error)
- func (s *Node) EnableDiskMode() error
- func (s *Node) GetBindAddress() string
- func (s *Node) Recover(cluster []protocol.NodeInfo) error
- func (s *Node) RecoverExt(cluster []protocol.NodeInfo) error
- func (s *Node) SetAutoRecovery(on bool) error
- func (s *Node) SetBindAddress(address string) error
- func (s *Node) SetDialFunc(dial protocol.DialFunc) error
- func (s *Node) SetFailureDomain(code uint64) error
- func (s *Node) SetNetworkLatency(nanoseconds uint64) error
- func (s *Node) SetSnapshotParams(params SnapshotParams) error
- func (s *Node) Start() error
- func (s *Node) Stop() error
- type SnapshotParams
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNodeStopped = fmt.Errorf("server was stopped")
ErrNodeStopped is returned by Node.Handle() is the server was stopped.
Functions ¶
func ConfigMultiThread ¶
func ConfigMultiThread() error
func ConfigSingleThread ¶
func ConfigSingleThread() error
func GenerateID ¶
GenerateID generates a unique ID for a server.
Types ¶
type Node ¶
type Node struct {
// contains filtered or unexported fields
}
func (*Node) EnableDiskMode ¶
func (*Node) GetBindAddress ¶
func (*Node) RecoverExt ¶
RecoverExt has a similar purpose as `Recover` but takes the node role into account
func (*Node) SetAutoRecovery ¶
func (*Node) SetBindAddress ¶
func (*Node) SetFailureDomain ¶
func (*Node) SetNetworkLatency ¶
func (*Node) SetSnapshotParams ¶
func (s *Node) SetSnapshotParams(params SnapshotParams) error
type SnapshotParams ¶
Click to show internal directories.
Click to hide internal directories.