recurring

package
v0.0.0-...-83a686f Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2020 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var TasquesRecurringTasksIndex = ".tasques_recurring_tasks"

Functions

func NewService

func NewService(client *elasticsearch.Client, scrollPageSize uint, scrollTtl time.Duration) recurring.Service

Types

type EsService

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

func (*EsService) All

func (e *EsService) All(ctx context.Context) ([]recurring.Task, error)

func (*EsService) Create

func (e *EsService) Create(ctx context.Context, task *recurring.NewTask) (*recurring.Task, error)

func (*EsService) Delete

func (*EsService) Get

func (e *EsService) Get(ctx context.Context, id task.RecurringTaskId, includeSoftDeleted bool) (*recurring.Task, error)

func (*EsService) MarkLoaded

func (e *EsService) MarkLoaded(ctx context.Context, toMarks []recurring.Task) (*recurring.MultiUpdateResult, error)

func (*EsService) NotLoaded

func (e *EsService) NotLoaded(ctx context.Context) ([]recurring.Task, error)

func (*EsService) SetUTCGetter

func (e *EsService) SetUTCGetter(getter func() time.Time)

func (*EsService) Update

func (e *EsService) Update(ctx context.Context, update *recurring.Task) (*recurring.Task, error)

Jump to

Keyboard shortcuts

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