Documentation ¶
Index ¶
- Variables
- func ConfigMultiThread() error
- func ConfigSingleThread() error
- func GenerateID(address string) uint64
- type Node
- func (s *Node) Close()
- func (s *Node) GetBindAddress() string
- func (s *Node) Recover(cluster []protocol.NodeInfo) error
- func (s *Node) SetBindAddress(address string) error
- func (s *Node) SetDialFunc(dial protocol.DialFunc) error
- func (s *Node) SetNetworkLatency(nanoseconds uint64) error
- func (s *Node) Start() error
- func (s *Node) Stop() error
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 ¶ added in v1.2.0
func ConfigMultiThread() error
func ConfigSingleThread ¶ added in v1.2.0
func ConfigSingleThread() error
func GenerateID ¶ added in v1.4.0
GenerateID generates a unique ID for a server.
Types ¶
type Node ¶ added in v1.0.0
type Node C.dqlite_node
func (*Node) Close ¶ added in v1.0.0
func (s *Node) Close()
Close the server releasing all used resources.
func (*Node) GetBindAddress ¶ added in v1.0.0
func (*Node) SetBindAddress ¶ added in v1.0.0
func (*Node) SetNetworkLatency ¶ added in v1.0.0
Click to show internal directories.
Click to hide internal directories.