redis

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2023 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewPool

func NewPool(addr string) *redigo.Pool

Types

type ApiKeyStorage

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

func NewApiKeyStorage

func NewApiKeyStorage(c *ApiKeyStorageConfig) *ApiKeyStorage

func (*ApiKeyStorage) Delete

func (s *ApiKeyStorage) Delete(key string) error

func (*ApiKeyStorage) Get

func (s *ApiKeyStorage) Get(key string) (*apikey.ApiKey, error)

func (*ApiKeyStorage) GetAll

func (s *ApiKeyStorage) GetAll() (apikey.ApiKeys, error)

func (*ApiKeyStorage) GetByName

func (s *ApiKeyStorage) GetByName(name string) (*apikey.ApiKey, error)

func (*ApiKeyStorage) Save

func (s *ApiKeyStorage) Save(apikey apikey.ApiKey) error

type ApiKeyStorageConfig

type ApiKeyStorageConfig struct {
	RedisPool *redigo.Pool
}

type MediaStorage

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

func NewMediaStorage

func NewMediaStorage(c MediaStorageConfig) *MediaStorage

func (*MediaStorage) Delete

func (s *MediaStorage) Delete(path media.Path) error

func (*MediaStorage) ReadMany

func (s *MediaStorage) ReadMany(in media.ReadManyInput) ([]media.Media, error)

func (*MediaStorage) ReadOne

func (s *MediaStorage) ReadOne(path media.Path) (*media.Media, error)

func (*MediaStorage) Save

func (s *MediaStorage) Save(m *media.Media) error

type MediaStorageConfig

type MediaStorageConfig struct {
	RedisPool *redigo.Pool
}

type NamedTransformationStorage

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

func (*NamedTransformationStorage) Delete

func (s *NamedTransformationStorage) Delete(name string) error

func (*NamedTransformationStorage) DeleteAll

func (s *NamedTransformationStorage) DeleteAll() error

func (*NamedTransformationStorage) Get

func (*NamedTransformationStorage) GetAll

func (*NamedTransformationStorage) Save

type NamedTransformationStorageConfig

type NamedTransformationStorageConfig struct {
	RedisPool *redigo.Pool
}

type TaskStorage

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

func NewTaskStorage

func NewTaskStorage(c *TaskStorageConfig) *TaskStorage

func (*TaskStorage) Delete

func (s *TaskStorage) Delete(id uuid.UUID) error

func (*TaskStorage) Get

func (s *TaskStorage) Get(id uuid.UUID) (*task.Task, error)

func (*TaskStorage) GetAll

func (s *TaskStorage) GetAll() ([]task.Task, error)

func (*TaskStorage) GetPending

func (s *TaskStorage) GetPending() (*task.Task, error)

func (*TaskStorage) Save

func (s *TaskStorage) Save(task task.Task) error

type TaskStorageConfig

type TaskStorageConfig struct {
	RedisPool *redigo.Pool
}

Jump to

Keyboard shortcuts

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