redis

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2021 License: Apache-2.0 Imports: 6 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRouteMapRepository

func NewRouteMapRepository(client *redis.Client, prefix string) lora.RouteMapRepository

NewRouteMapRepository returns redis thing cache implementation.

Types

type Subscriber

type Subscriber interface {
	// Subscribes to geven subject and receives events.
	Subscribe(string) error
}

Subscriber represents event source for things and channels provisioning.

func NewEventStore

func NewEventStore(svc lora.Service, client *redis.Client, consumer string, log logger.Logger) Subscriber

NewEventStore returns new event store instance.

Jump to

Keyboard shortcuts

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