consumer

package
v0.0.0-...-1a28f68 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2020 License: Apache-2.0 Imports: 7 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Consumer

type Consumer interface {
	Consume() <-chan *DeviceEvent
}

func New

func New(pool *redis.Pool) Consumer

type DeviceEvent

type DeviceEvent struct {
	Object api.Object
	State  api.DeviceState
}

type RedisStreamEvent

type RedisStreamEvent struct {
	ID          string
	DeviceEvent *DeviceEvent
}

Jump to

Keyboard shortcuts

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