proxy

package
v0.0.0-...-c582d63 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2020 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

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

func (*App) HandleConnection

func (a *App) HandleConnection(ctx context.Context, wg *sync.WaitGroup, gateway chan comfoconnect.Message) error

func (*App) Write

func (a *App) Write(message comfoconnect.Message) error

type Client

type Client struct {
	IP string
	// contains filtered or unexported fields
}

func NewClient

func NewClient(ip string, macAddress []byte, toGateway chan comfoconnect.Message, fromGateway chan comfoconnect.Message) *Client

func (Client) Run

func (c Client) Run(ctx context.Context, wg *sync.WaitGroup) error

type Listener

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

func NewListener

func NewListener(toGateway chan comfoconnect.Message) *Listener

func (*Listener) Run

func (l *Listener) Run(ctx context.Context, wg *sync.WaitGroup)

type Proxy

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

func NewProxy

func NewProxy(gatewayIP string, myMacAddress []byte) *Proxy

func (Proxy) Run

func (p Proxy) Run(ctx context.Context, wg *sync.WaitGroup)

Jump to

Keyboard shortcuts

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