redis

package
v0.0.0-...-37f97d0 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

type Store struct {
	*redis.Service
}

Store for entity in redis.

func (*Store) Delete

func (s *Store) Delete(ctx context.Context, filter player.Filter) error

Delete implementation for player in redis.

func (*Store) DeleteInventory

func (s *Store) DeleteInventory(ctx context.Context, filter player.FilterInventory) error

Delete implementation for player in redis.

func (*Store) DeleteSpawn

func (s *Store) DeleteSpawn(ctx context.Context, filter player.FilterSpawn) error

DeleteSpawn implementation for player spawn in redis.

func (*Store) Fetch

func (s *Store) Fetch(ctx context.Context, filter player.Filter) (player.P, error)

Fetch implementation for player in redis.

func (*Store) FetchInventory

func (s *Store) FetchInventory(ctx context.Context, filter player.FilterInventory) (player.Inventory, error)

Fetch implementation for player in redis.

func (*Store) FetchMany

func (s *Store) FetchMany(ctx context.Context, filter player.Filter) (map[string]player.P, error)

FetchMany implementation for player in redis.

func (*Store) FetchSpawn

func (s *Store) FetchSpawn(ctx context.Context, filter player.FilterSpawn) (player.Spawn, error)

FetchSpawn implementation for player spawn in redis.

func (*Store) Upsert

func (s *Store) Upsert(ctx context.Context, p player.P) error

Upsert implementation for player in redis.

func (*Store) UpsertInventory

func (s *Store) UpsertInventory(ctx context.Context, inv player.Inventory) error

Upsert implementation for player in redis.

func (*Store) UpsertSpawn

func (s *Store) UpsertSpawn(ctx context.Context, sp player.Spawn) error

UpsertSpawn implementation for player spawn in redis.

Jump to

Keyboard shortcuts

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