taskdb

package
v0.0.0-...-75be81d Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MongoDB

type MongoDB struct {
	BaseStorage *storage.MongoStorage
	Codec       codec.Codec[core.Task, map[string]any]
}

func (*MongoDB) ByIDs

func (ms *MongoDB) ByIDs(ctx context.Context, ids []string) ([]core.Task, error)

func (*MongoDB) Delete

func (ms *MongoDB) Delete(ctx context.Context, ids []string) error

func (*MongoDB) Exec

func (ms *MongoDB) Exec(ctx context.Context, command storage.Command) ([]storage.Document, error)

func (*MongoDB) GetWithProperties

func (ms *MongoDB) GetWithProperties(ctx context.Context, propertiesToValues map[string][]any) ([]core.Task, error)

func (*MongoDB) Insert

func (ms *MongoDB) Insert(ctx context.Context, tasks []core.Task) error

func (*MongoDB) Settings

func (ms *MongoDB) Settings(ctx context.Context) (storage.Settings, error)

func (*MongoDB) UpdateByIDs

func (ms *MongoDB) UpdateByIDs(ctx context.Context, ids []string, properties map[string]any) error

func (*MongoDB) UpdateWithProperties

func (ms *MongoDB) UpdateWithProperties(ctx context.Context, propertiesToValues map[string][]any, newProperties map[string]any) (int, error)

Jump to

Keyboard shortcuts

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