mongodb_redis

package
v0.2.5 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MongoDBRedis

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

func New

func New(dsn string) (*MongoDBRedis, error)

func (*MongoDBRedis) ActivateTenants

func (m *MongoDBRedis) ActivateTenants(ctx context.Context, opt types.ActivateTenantsOption) error

func (*MongoDBRedis) Close

func (m *MongoDBRedis) Close() error

func (*MongoDBRedis) CountTenantPendingTasks

func (m *MongoDBRedis) CountTenantPendingTasks(ctx context.Context, opt types.CountTenantPendingTasksOption) (int64, error)

func (*MongoDBRedis) CreateTask

func (m *MongoDBRedis) CreateTask(ctx context.Context, t entity.Task) error

func (*MongoDBRedis) CreateTenant

func (m *MongoDBRedis) CreateTenant(ctx context.Context, t entity.Tenant) error

func (*MongoDBRedis) FindActiveTenants

func (m *MongoDBRedis) FindActiveTenants(ctx context.Context, opt types.FindActiveTenantsOption) (entity.Tenants, error)

func (*MongoDBRedis) FindPendingTasks

func (m *MongoDBRedis) FindPendingTasks(ctx context.Context, opt types.FindPendingTasksOption) (entity.Tasks, error)

func (*MongoDBRedis) GetTask

func (m *MongoDBRedis) GetTask(ctx context.Context, opt types.GetTaskOption) (*entity.Task, error)

func (*MongoDBRedis) GetTaskStatus

func (m *MongoDBRedis) GetTaskStatus(ctx context.Context, opt types.GetTaskStatusOption) (enum.TaskStatus, error)

func (*MongoDBRedis) GetTenant

func (m *MongoDBRedis) GetTenant(ctx context.Context, opt types.GetTenantOption) (*entity.Tenant, error)

func (*MongoDBRedis) UpdateTaskStatus

func (m *MongoDBRedis) UpdateTaskStatus(ctx context.Context, opt types.UpdateTaskStatusOption) error

Jump to

Keyboard shortcuts

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