Documentation ¶
Index ¶
- Variables
- type Option
- func BlockSize(blockSize int64) Option
- func BootstrapPeers(peers []string) Option
- func BootstrapPeersAppend(peers []string) Option
- func Context(ctx context.Context) Option
- func GCInterval(interval time.Duration) Option
- func Identity(id identity.Identity) Option
- func IdentityFromReader(r io.Reader) Option
- func Port(port uint) Option
- func RelayOnly(relayOnly bool) Option
- func ReprovideInterval(interval time.Duration) Option
- func Root(root string) Option
- type Settings
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultBootstrapPeers = []string{}
DefaultBootstrapPeers collection of peers to use as bootstrap by default
Functions ¶
This section is empty.
Types ¶
type Option ¶
Option represents a single init option
func BootstrapPeersAppend ¶
BootstrapPeersAppend option
func GCInterval ¶
GCInterval interval which the garbage collector should run
func IdentityFromReader ¶
IdentityFromReader set the node identity from a reader
func ReprovideInterval ¶
ReprovideInterval interval which blocks are republished to the network
type Settings ¶
type Settings struct { Context context.Context Port uint BootstrapPeers []string RelayOnly bool BlockSize int64 Root string ReprovideInterval time.Duration GCInterval time.Duration Identity identity.Identity }
Settings init settings
func (*Settings) SetDefaults ¶
SetDefaults set the default values
Click to show internal directories.
Click to hide internal directories.