agent

package
v0.0.0-...-3f65307 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2019 License: MPL-2.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 Agent

type Agent struct {
	ID    string
	Host  string
	Port  int
	Peers []string
}

Agent ...

func New

func New(id string, host string, port int, peers []string) *Agent

New returns a new agent instance

func (*Agent) GetAddress

func (a *Agent) GetAddress() string

GetAddress concatenates host and port

func (*Agent) Run

func (a *Agent) Run() error

Run ...

func (*Agent) String

func (a *Agent) String() string

String returns a human readable representation

Jump to

Keyboard shortcuts

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