shared

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2017 License: MIT Imports: 1 Imported by: 15

Documentation

Overview

Package shared contains shared elements of the LIFX LAN protocol version 2.

This package is not designed to be accessed by end users, all interaction should occur via the Client in the golifx package.

Index

Constants

View Source
const (
	DefaultPort = 56700
	RateLimit   = time.Second / 20 // Max 20 packets per second
)

Variables

This section is empty.

Functions

This section is empty.

Types

type EventBroadcastSent added in v0.3.3

type EventBroadcastSent struct{}

EventBroadcastSent is emitted when a request is sent via broadcast, to allow synchronization of rate limiting

type EventRequestSent added in v0.3.3

type EventRequestSent struct{}

EventRequestSent is emitted when a request is sent by a device, to allow synchronization of rate limiting

type Message

type Message uint16

type Service

type Service uint8
const (
	ServiceUDP Service = iota
)

Jump to

Keyboard shortcuts

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