redis

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package redis contains cache implementations using Redis as the underlying database.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EventStore

type EventStore struct {
	// contains filtered or unexported fields
}

EventStore is a struct used to store event streams in Redis

func NewEventStore

func NewEventStore(client *redis.Client, instance string) EventStore

NewEventStore returns wrapper around mProxy service that sends events to event store.

func (EventStore) Connect

func (es EventStore) Connect(clientID string) error

Connect issues event on MQTT CONNECT

func (EventStore) Disconnect

func (es EventStore) Disconnect(clientID string) error

Disconnect issues event on MQTT CONNECT

Jump to

Keyboard shortcuts

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