redis

package
v0.0.0-...-1b0f315 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2023 License: Apache-2.0 Imports: 13 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(redisPool *redigo.Pool) *ApiKeyStorage

func (*ApiKeyStorage) Delete

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

func (*ApiKeyStorage) GetAll

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

func (*ApiKeyStorage) GetByKey

func (s *ApiKeyStorage) GetByKey(key string) (*apikey.ApiKey, 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 MediaStorage

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

func NewMediaStorage

func NewMediaStorage(redisPool *redigo.Pool) *MediaStorage

func (*MediaStorage) Delete

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

func (*MediaStorage) Get

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

func (*MediaStorage) GetMultiple

func (s *MediaStorage) GetMultiple(path media.Path, offset int, limit int, sortBy string, asc bool) ([]media.Media, error)

func (*MediaStorage) Save

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

type NamedTransformationStorage

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

func NewNamedTransformationStorage

func NewNamedTransformationStorage(redisPool *redigo.Pool) *NamedTransformationStorage

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

func (s *NamedTransformationStorage) Save(namedTransformation transform.NamedTransformation) error

type TaskStorage

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

func NewTaskStorage

func NewTaskStorage(redisPool *redigo.Pool) *TaskStorage

func (*TaskStorage) DequeueTask

func (s *TaskStorage) DequeueTask() (*scheduler.Task, error)

func (*TaskStorage) EnqueueTask

func (s *TaskStorage) EnqueueTask(task *scheduler.Task) error

Jump to

Keyboard shortcuts

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