memcached

package
v0.0.0-...-91eb443 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SearchableTask

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

SearchableTask ...

func NewSearchableTask

func NewSearchableTask(client *memcache.Client, orig SearchableTaskStore) *SearchableTask

NewSearchableTask instantiates the Task repository.

func (*SearchableTask) Delete

func (t *SearchableTask) Delete(ctx context.Context, id string) error

Delete ...

func (*SearchableTask) Index

func (t *SearchableTask) Index(ctx context.Context, task internal.Task) error

Index ...

func (*SearchableTask) Search

Search ...

type SearchableTaskStore

type SearchableTaskStore interface {
	Delete(ctx context.Context, id string) error
	Index(ctx context.Context, task internal.Task) error
	Search(ctx context.Context, args internal.SearchParams) (internal.SearchResults, error)
}

type Task

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

func NewTask

func NewTask(client *memcache.Client, orig TaskStore, logger *zap.Logger) *Task

func (*Task) Create

func (t *Task) Create(ctx context.Context, params internal.CreateParams) (internal.Task, error)

func (*Task) Delete

func (t *Task) Delete(ctx context.Context, id string) error

func (*Task) Find

func (t *Task) Find(ctx context.Context, id string) (internal.Task, error)

func (*Task) Update

func (t *Task) Update(ctx context.Context, id string, description string, priority internal.Priority, dates internal.Dates, isDone bool) error

type TaskStore

type TaskStore interface {
	Create(ctx context.Context, params internal.CreateParams) (internal.Task, error)
	Delete(ctx context.Context, id string) error
	Find(ctx context.Context, id string) (internal.Task, error)
	Update(ctx context.Context, id, description string, priority internal.Priority, dates internal.Dates, isDone bool) error
}

Jump to

Keyboard shortcuts

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