hk

package
v0.0.0-...-eca1e64 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2021 License: GPL-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenSerial

func GenSerial(name string) string

Types

type Door

type Door struct {
	Name string
	*GarageDoorOpener
	Transport hc.Transport
	// contains filtered or unexported fields
}

func NewDoor

func NewDoor(name string, config hc.Config, msgBroker *msg.Broker, initialState int) (*Door, error)

func (*Door) SetCurrentState

func (d *Door) SetCurrentState(state int)

func (*Door) SetTargetState

func (d *Door) SetTargetState(state int)

func (*Door) StopTransport

func (d *Door) StopTransport()

type GarageDoorOpener

type GarageDoorOpener struct {
	*accessory.Accessory
	Door *service.GarageDoorOpener
}

func NewGarageDoorOpener

func NewGarageDoorOpener(info accessory.Info) *GarageDoorOpener

NewGarageDoorOpener returns a garage door opener

type Server

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

func NewServer

func NewServer(hkpin, dbpath string, msgBroker *msg.Broker) *Server

func (*Server) Start

func (s *Server) Start()

func (*Server) Stop

func (s *Server) Stop()

Jump to

Keyboard shortcuts

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