redis

package
v0.0.0-...-f479431 Latest Latest
Warning

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

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

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(context.Context, 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