net

package
v0.0.0-...-9d2622c Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2018 License: MIT Imports: 14 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Channel

type Channel struct {
	// contains filtered or unexported fields
}

func NewChannel

func NewChannel(connection *Connection, sourceID string, destinationID string, namespace string) *Channel

func (*Channel) Request

func (c *Channel) Request(payload messages.Payload) (Message, error)

func (*Channel) Send

func (c *Channel) Send(payload messages.Payload) error

type Connection

type Connection struct {
	Responses map[int]chan Message
	Events    EventBus.Bus
	// contains filtered or unexported fields
}

func NewConnection

func NewConnection(dnsEntry DNSEntry) *Connection

func (*Connection) Close

func (c *Connection) Close() error

func (*Connection) Connect

func (c *Connection) Connect() error

func (*Connection) Send

func (c *Connection) Send(requestID int, message *protobuf.CastMessage) (chan Message, error)

type DNSEntry

type DNSEntry struct {
	AddressV4  net.IP
	AddressV6  net.IP
	Port       int
	Name       string
	Host       string
	UUID       string
	Device     string
	Status     string
	DeviceName string
	InfoFields map[string]string
}

func GetAllEntries

func GetAllEntries() []DNSEntry

type Message

type Message struct {
	CastMessage *protobuf.CastMessage
	Payload     *messages.PayloadHeader
}

Jump to

Keyboard shortcuts

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