datastore

package
v0.0.0-...-2b72877 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	UsersKey = "%s:users"
)

Defining the keys used in the datastore this way is clearer, and allows key reuse.

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) GetUsers

func (d *Datastore) GetUsers() ([]string, error)

Jump to

Keyboard shortcuts

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