homekit

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bridge

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

Bridge exposes Services to HomeKit.

func NewBridge

func NewBridge(cfg config.Config, mgr *service.Manager, services ...service.Service) (*Bridge, error)

NewBridge creates a new Bridge that uses the service.Manager to control the given services. A nil Bridge and error can be returned if initializing the underlying hc.Transport fails.

func (*Bridge) Start

func (b *Bridge) Start() error

Start starts the bridge (including underlying transport), blocking until a call to Stop.

func (*Bridge) Stop

func (b *Bridge) Stop()

Stop stops the bridge and the underlying transport, blocking until a call to Stop.

Jump to

Keyboard shortcuts

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