package
2.0.0+incompatible
Repository: https://github.com/quarkchain/goquarkchain.git
Documentation: pkg.go.dev
# Functions
DefaultDataDir is the default data directory to use for the databases and other persistence requirements.
New creates a new P2P node, ready for protocol registration.
No description provided by the author
# Variables
DefaultConfig contains reasonable default settings.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Structs
Config represents a small collection of configuration values to fine tune the P2P network layer of a protocol stack.
DuplicateServiceError is returned during Node startup if a registered service constructor returns a service of the same type that was already started.
Node is a container on which services can be registered.
No description provided by the author
ServiceContext is a collection of service independent options inherited from the protocol stack, that is passed to all constructors to be optionally used; as well as utility methods to operate on the service environment.
StopError is returned if a Node fails to stop either any of its registered services or itself.
# Interfaces
Service is an individual protocol that can be registered into a node.
# Type aliases
ServiceConstructor is the function signature of the constructors needed to be registered for service instantiation.