hping

package
v1.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 25, 2023 License: MIT Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NodeInfo

type NodeInfo struct {
	VN     vn.ID  `json:"vn"`
	SP     sp.ID  `json:"sp"`
	PeerID string `json:"peer_id"`
	IP     string `json:"ip"`
	LST    int64  `json:"lst"`
}

type NodeLoadReq

type NodeLoadReq struct {
	VN   vn.ID      `json:"vn"`
	Page *load.Page `json:"page"`
}

type NodeLoadResp

type NodeLoadResp struct {
	Paging *load.Paging `json:"paging"`
	Items  []*NodeInfo  `json:"items"`
}

type PingReq

type PingReq struct {
	VN     vn.ID  `json:"vn"`
	SP     sp.ID  `json:"sp"`
	PeerID string `json:"peer_id"`
}

type PingResp

type PingResp struct {
	Timestamp int64 `json:"timestamp"`
}

type Service

type Service interface {
	Ping(req PingReq) (*PingResp, *errors.Error)
	NPLoad(req NodeLoadReq) (*NodeLoadResp, *errors.Error)
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL