bindings

package
v1.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 4, 2019 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

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 Init

func Init() error

Init initializes dqlite global state.

Types

type Error

type Error struct {
	Code    int
	Message string
}

Error holds information about a SQLite error.

func (Error) Error

func (e Error) Error() string

type Node added in v1.0.0

type Node C.dqlite_node

func NewNode added in v1.0.0

func NewNode(id uint64, address string, dir string) (*Node, error)

NewNode creates a new Node instance.

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 (s *Node) GetBindAddress() string

func (*Node) Recover added in v1.1.0

func (s *Node) Recover(cluster []protocol.NodeInfo) error

func (*Node) SetBindAddress added in v1.0.0

func (s *Node) SetBindAddress(address string) error

func (*Node) SetDialFunc added in v1.0.0

func (s *Node) SetDialFunc(dial protocol.DialFunc) error

func (*Node) SetNetworkLatency added in v1.0.0

func (s *Node) SetNetworkLatency(nanoseconds uint64) error

func (*Node) Start added in v1.0.0

func (s *Node) Start() error

func (*Node) Stop added in v1.0.0

func (s *Node) Stop() error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL