Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNotNetworkedEndpoint = errors.New("endpoint is not a NetworkedEndpoint") ErrUnknownMessageFormat = errors.New("unknown message format") ErrIpfsV1InvalidPeerID = errors.New("IpfsV1 Message contains invalid peer.ID") ErrIpfsV1InvalidRequest = errors.New("IpfsV1 Message unknown request type") ErrSimMessageNilTarget = errors.New("SimMessage target is nil") )
View Source
var DefaultConfig = func(cfg *Config) error { cfg.PeerstoreTTL = 30 * time.Minute cfg.NumberUsefulCloserPeers = 20 return nil }
DefaultConfig is the default options for BasicServer. This option is always prepended to the list of options passed to the BasicServer constructor.
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.