Documentation
¶
Index ¶
- type EntRepository
- func (r *EntRepository) AddTask(ctx context.Context, param def.TaskUpdateParam) (def.Task, error)
- func (r *EntRepository) Cancel(ctx context.Context, id string) error
- func (r *EntRepository) CancelDispatched(ctx context.Context) error
- func (r *EntRepository) Close() error
- func (r *EntRepository) DeleteEnded(ctx context.Context, returning bool, limit int) error
- func (r *EntRepository) Find(ctx context.Context, query def.TaskQueryParam, offset, limit int) ([]def.Task, error)
- func (r *EntRepository) GetById(ctx context.Context, id string) (def.Task, error)
- func (r *EntRepository) GetNext(ctx context.Context) (def.Task, error)
- func (r *EntRepository) MarkAsDispatched(ctx context.Context, id string) error
- func (r *EntRepository) MarkAsDone(ctx context.Context, id string, err error) error
- func (r *EntRepository) RevertDispatched(ctx context.Context) error
- func (r *EntRepository) UpdateById(ctx context.Context, id string, param def.TaskUpdateParam) error
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) CancelDispatched ¶
func (r *EntRepository) CancelDispatched(ctx context.Context) error
func (*EntRepository) Close ¶
func (r *EntRepository) Close() error
func (*EntRepository) DeleteEnded ¶
func (*EntRepository) Find ¶
func (r *EntRepository) Find( ctx context.Context, query def.TaskQueryParam, offset, limit int, ) ([]def.Task, error)
func (*EntRepository) MarkAsDispatched ¶
func (r *EntRepository) MarkAsDispatched(ctx context.Context, id string) error
func (*EntRepository) MarkAsDone ¶
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
Click to show internal directories.
Click to hide internal directories.