ntwrk

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2022 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func NewClient

func NewClient(host string, port int) *Client

func (*Client) Measure

func (c *Client) Measure() (string, string, error)

func (*Client) SetMeasureDuration

func (c *Client) SetMeasureDuration(d time.Duration)

func (*Client) StartCLI

func (c *Client) StartCLI()

StartCLI starts the network test suite.

func (*Client) Whoami

func (c *Client) Whoami() (string, error)

Whoami requests the client's external IP address from `host` and prints it.

type Server added in v0.1.5

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

func NewServer added in v0.1.5

func NewServer(port int, logger *log.Logger) *Server

func (*Server) Start added in v0.1.5

func (s *Server) Start()

StartServer starts a network test server on `port`.

Jump to

Keyboard shortcuts

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