containers

package
v0.0.0-...-fa1d5a5 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2016 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Host

type Host struct {
	RemoteHost net.Conn
	DataPort   net.Conn
	HostName   string
	Port       int
	UUID       string
	Message    chan string
	*sync.RWMutex
}

Container for a host object Has a channel with a network connection. We'll use the channel to send messages over the network to the remote host.

type Job

type Job interface {
	Lock() sync.RWMutex
	JobID() string
}

Job... top level container for jobs

type Mesh

type Mesh struct {
	Peers []string
	Nets  []string
}

Mesh... Struct to contain the mesh relay mapping

type Peer

type Peer struct {
	Host string
	Net  string
}
Peer ... container

to hold information about Peers for distribution to all clients to inform about the mesh

Jump to

Keyboard shortcuts

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