Documentation ¶
Index ¶
- Constants
- type FxPing
- func (pn *FxPing) Ping(ctx context.Context, to peer.ID) (int, int, error)
- func (pn *FxPing) Shutdown(ctx context.Context) error
- func (pn *FxPing) Start(ctx context.Context) error
- func (pn *FxPing) Status() bool
- func (pn *FxPing) StopClient(ctx context.Context)
- func (pn *FxPing) StopServer(ctx context.Context) error
- type Option
- type Ping
- type PingRequest
- type PingResponse
Constants ¶
View Source
const (
FxPingProtocolID = "/fx.land/ping/0.0.1"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FxPing ¶
type FxPing struct {
// contains filtered or unexported fields
}
func (*FxPing) StopClient ¶
type Option ¶
type Option func(*options) error
func WithTimeout ¶
type PingRequest ¶
type PingResponse ¶
Click to show internal directories.
Click to hide internal directories.