redis

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Datastore

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

func NewRedisDatastore

func NewRedisDatastore(host string, port string, username string, password string, tls bool) *Datastore

func (*Datastore) Connect

func (d *Datastore) Connect() error

Connect to set Redis connection string

func (*Datastore) Disconnect

func (d *Datastore) Disconnect()

func (*Datastore) SetThingStatus

func (d *Datastore) SetThingStatus(thingID int, status bool) error

Jump to

Keyboard shortcuts

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