ping

package
v0.0.0-...-ecbebe3 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Options options

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(server string, ops ...option) (*Client, error)

type IPing

type IPing interface {
	StatusRequest(conn net.Conn) (Response, error)
	Latency(conn net.Conn) (int, error)

	GetPackage() *pkgb.PKG
	HandShake(conn net.Conn) error
	Close(conn net.Conn) error
	IsHandShaken() bool
	SetVersion(version ver.Version)
}

type Response

type Response interface {
	GetLength() int
	GetBody() []byte
}

Jump to

Keyboard shortcuts

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