peer

package module
v0.0.0-...-fd0ef8a Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2015 License: MIT Imports: 6 Imported by: 0

README

Peer

A scalable peer network for anything

Docker Instructions

docker build -t [name e.g. misrab/peer:v1] .
docker run -t -i misrab/peer:v1

This will run as an executable.

Documentation

Index

Constants

View Source
const (
	ZMQ_EAGAIN = 35 // nothing on socket, see http://api.zeromq.org/4-0:zmq-msg-recv#toc2
)

Variables

View Source
var (
	DEFAULT_PEERS = []string{"tcp://localhost:5000"}
)

Functions

This section is empty.

Types

type AddressStore

type AddressStore interface {
	Get(key string) (string, error)
	Set(key, value string) error
}

func NewAddressStore

func NewAddressStore() (AddressStore, error)

type Peer

type Peer struct {
	Address   string
	UpdatedAt time.Time
}

Jump to

Keyboard shortcuts

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