app

package
v1.0.0-beta.28 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2023 License: Apache-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 App

type App struct {
	Url     url.URL
	Channel string
	Devices []*Device
}

func NewApp

func NewApp(url url.URL, channel string) *App

func (*App) AddDevice

func (a *App) AddDevice() error

func (*App) Close

func (a *App) Close() error

func (*App) Start

func (a *App) Start() error

func (*App) StartPublishing

func (a *App) StartPublishing()

type Device

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

func NewDevice

func NewDevice(id string, url url.URL) (*Device, error)

func (*Device) Attach

func (d *Device) Attach(channel string) error

func (*Device) Close

func (d *Device) Close()

func (*Device) DeAttach

func (d *Device) DeAttach(channel string) error

func (*Device) Publish

func (d *Device) Publish(channel string, id string) error

func (*Device) StartReceiving

func (d *Device) StartReceiving()

func (*Device) Subscribe

func (d *Device) Subscribe(channel string) error

Jump to

Keyboard shortcuts

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