ent

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2025 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EntRepository

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

func NewEntRepository

func NewEntRepository(client *gen.Client) *EntRepository

func (*EntRepository) AddTask

func (r *EntRepository) AddTask(ctx context.Context, param def.TaskUpdateParam) (def.Task, error)

func (*EntRepository) Cancel

func (r *EntRepository) Cancel(ctx context.Context, id string) error

func (*EntRepository) CancelDispatched

func (r *EntRepository) CancelDispatched(ctx context.Context) error

func (*EntRepository) Close

func (r *EntRepository) Close() error

func (*EntRepository) DeleteEnded

func (r *EntRepository) DeleteEnded(
	ctx context.Context,
	returning bool,
	limit int,
) error

func (*EntRepository) Find

func (r *EntRepository) Find(
	ctx context.Context,
	query def.TaskQueryParam,
	offset, limit int,
) ([]def.Task, error)

func (*EntRepository) GetById

func (r *EntRepository) GetById(ctx context.Context, id string) (def.Task, error)

func (*EntRepository) GetNext

func (r *EntRepository) GetNext(ctx context.Context) (def.Task, error)

func (*EntRepository) MarkAsDispatched

func (r *EntRepository) MarkAsDispatched(ctx context.Context, id string) error

func (*EntRepository) MarkAsDone

func (r *EntRepository) MarkAsDone(ctx context.Context, id string, err error) error

func (*EntRepository) RevertDispatched

func (r *EntRepository) RevertDispatched(ctx context.Context) error

func (*EntRepository) UpdateById

func (r *EntRepository) UpdateById(
	ctx context.Context,
	id string,
	param def.TaskUpdateParam,
) error

Directories

Path Synopsis
gen

Jump to

Keyboard shortcuts

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