store

package
v0.0.0-...-cf16b6f Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

type Store struct {
	State pb.StateUpdatePoint
	// contains filtered or unexported fields
}

func NewStore

func NewStore(client *mqtt.Client, topic string) (*Store, error)

func (*Store) Flatten

func (s *Store) Flatten(sep string) map[string]interface{}

func (*Store) Notify

func (s *Store) Notify(sup *pb.StateUpdatePoint)

func (*Store) Subscribe

func (s *Store) Subscribe() (chan *pb.StateUpdatePoint, error)

func (*Store) Unsubscribe

func (s *Store) Unsubscribe(ch chan *pb.StateUpdatePoint)

func (*Store) Update

func (s *Store) Update(sup *pb.StateUpdatePoint) error

Jump to

Keyboard shortcuts

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