Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct {
// Protocol of the service to advertise
Protocol protocol.ID
// Addresses to advertise the service. If more than one address is used it will work as a load balancer.
Addresses []multiaddr.Multiaddr
// Optional. Allowed peers to permit access to consume this service
AllowedPeers []peer.ID
// Optional. If a DHT is available the service will be advertised within it.
Advertise bool
// Optional interval to use for advertising
AdvertiseInterval time.Duration
}
Click to show internal directories.
Click to hide internal directories.