test

package
v0.0.0-...-9776fe2 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFakeWebsocket

func NewFakeWebsocket() loxone.Loxone

Types

type FakeWebsocket

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

func (*FakeWebsocket) AddHook

func (l *FakeWebsocket) AddHook(uuid string, callback func(events.Event))

func (*FakeWebsocket) Close

func (l *FakeWebsocket) Close()

func (*FakeWebsocket) GetCommands

func (l *FakeWebsocket) GetCommands() []string

func (*FakeWebsocket) GetConfig

func (l *FakeWebsocket) GetConfig() (*loxone.Config, error)

func (*FakeWebsocket) GetEvents

func (l *FakeWebsocket) GetEvents() <-chan events.Event

func (*FakeWebsocket) GetFile

func (l *FakeWebsocket) GetFile(filename string) ([]byte, error)

func (*FakeWebsocket) PumpEvents

func (l *FakeWebsocket) PumpEvents(stop <-chan bool)

func (*FakeWebsocket) RegisterEvents

func (l *FakeWebsocket) RegisterEvents() error

func (*FakeWebsocket) SendCommand

func (l *FakeWebsocket) SendCommand(command string, class interface{}) (*loxone.Body, error)

func (*FakeWebsocket) SendEncryptedCommand

func (l *FakeWebsocket) SendEncryptedCommand(command string, class interface{}) (*loxone.Body, error)

func (*FakeWebsocket) TriggerEvent

func (l *FakeWebsocket) TriggerEvent(uuid string, value float64)

Jump to

Keyboard shortcuts

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