redis

package
v0.0.0-...-0451d2a Latest Latest
Warning

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

Go to latest
Published: May 12, 2023 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Storage

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

func NewStorage

func NewStorage(rdb *redis.Client) *Storage

func (*Storage) Get

func (stg *Storage) Get(ctx context.Context, id string) (*rooms.Room, error)

func (*Storage) List

func (stg *Storage) List(ctx context.Context, opts ...rooms.ListOption) ([]*rooms.Room, error)

func (*Storage) Save

func (stg *Storage) Save(ctx context.Context, room *rooms.Room) (id string, err error)

type View

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

func NewView

func NewView(rdb *redis.Client) *View

func (*View) Get

func (stg *View) Get(ctx context.Context, id string) (*rooms.Room, error)

func (*View) List

func (stg *View) List(ctx context.Context, opts ...rooms.ListOption) ([]*rooms.Room, error)

Jump to

Keyboard shortcuts

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