Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
type Remote ¶
type Remote struct {
// Timeout when GC active protocol connections
StreamTimeout time.Duration
// Timeout for the refresh process
RefreshTimeout time.Duration
// Interval between refresh processes
RefreshInterval time.Duration
// Protocol of the remote service
// This should be the same as the one advertised by remote
Protocol protocol.ID
// Name used for handling the service with the configured proxy
Host string
// Listen address for incoming requests
ListenAddress multiaddr.Multiaddr
// Optional. Remote peers address from which consume the remote service
// If a DHT is passed the service could be advertised locally and the P2P
// will resolve the address automatically
Addresses []multiaddr.Multiaddr
// Optional. Allowed peers to request the service from. This will prevent consuming
// the service from untrusted peers
AllowedPeers []peer.ID
}
Click to show internal directories.
Click to hide internal directories.