service

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetReceiveThingIdDataHandler

func GetReceiveThingIdDataHandler(handler func(string)) natsGo.MsgHandler

func New

func New(a auth.Auth, t things.Things, n nats.Nats) reader

New creates a new reader service

Types

type Reader

type Reader interface {
	AuthorizeSingleThing(userToken string, thingId string) error
	ReceiveThingData(thingId string, handler func(string), stop chan bool) error
}

Jump to

Keyboard shortcuts

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