internal

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: May 31, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExternalIP

func ExternalIP() (net.IP, error)

ExternalIP returns the external IP address of the current machine, avoiding any loopback or down interfaces.

func Ping

func Ping(addr string, port int, addrs chan<- string) error

Ping sends out a multicast message to the given address and port and sends any responses to the given channel.

Types

type Worker

type Worker struct {
	Id string

	Client pb.WorkerClient
	// contains filtered or unexported fields
}

func NewWorker

func NewWorker(host string, port int) (*Worker, error)

func (*Worker) Close

func (w *Worker) Close() error

Jump to

Keyboard shortcuts

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