Documentation
¶
Index ¶
Constants ¶
View Source
const ID = "/ipfs/ping"
View Source
const PingSize = 32
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PingService ¶
type PingService struct {
Host host.Host
}
func NewPingService ¶
func NewPingService(h host.Host) *PingService
func (*PingService) Ping ¶
func (ps *PingService) Ping(ctx context.Context, p peer.ID) (<-chan time.Duration, error)
func (*PingService) PingHandler ¶
func (p *PingService) PingHandler(s inet.Stream)
Click to show internal directories.
Click to hide internal directories.