Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CommitHandler ¶
CommitHandler ...
type ExceptionHandler ¶
type ExceptionHandler interface {
OnException(string)
}
ExceptionHandler ...
type MobileConfig ¶
type MobileConfig struct { Heartbeat int //heartbeat timeout in milliseconds TCPTimeout int //TCP timeout in milliseconds MaxPool int //Max number of pooled connections CacheSize int //Number of items in LRU cache SyncLimit int //Max Events per sync EnableFastSync bool //Enable fast sync Store bool //Use badger store LogLevel string //debug, info, warn, error, fatal, panic Moniker string //optional name }
MobileConfig ...
type Node ¶
type Node struct {
// contains filtered or unexported fields
}
Node ...
func New ¶
func New(privKey string, nodeAddr string, jsonPeers string, commitHandler CommitHandler, exceptionHandler ExceptionHandler, config *MobileConfig) *Node
New initializes Node struct
Click to show internal directories.
Click to hide internal directories.