peer

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PEER_TYPE_TCP_ACCEPTOR   = "tcp.Acceptor"
	PEER_TYPE_TCP_CONNECTOR  = "tcp.Connector"
	PEER_TYPE_UDP_ACCEPTOR   = "udp.Acceptor"
	PEER_TYPE_UDP_CONNECTOR  = "udp.Connector"
	PEER_TYPE_WS_ACCEPTOR    = "ws.Acceptor"
	PEER_TYPE_WS_CONNECTOR   = "ws.Connector"
	PEER_TYPE_HTTP_ACCEPTOR  = "http.Acceptor"
	PEER_TYPE_HTTP_CONNECTOR = "http.Connector"
)

Variables

This section is empty.

Functions

func NewPeer

func NewPeer(peerType string, name string, addr string, q void.EventQueue) void.Peer

func NewProperty

func NewProperty() void.PeerProperty

func Register

func Register(peerType string, f func() void.Peer)

Types

type Runnable

type Runnable interface {
	IsRunning() bool
	SetRunning(b bool)
	WaitStopFinished()
	IsStopping() bool
	StartStopping()
	EndStopping()
}

func NewRunnable

func NewRunnable() Runnable

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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