pool

package
v0.1.0-beta Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Pool

type Pool interface {
	CreateJob(topic job.Topic, id job.Id,
		delay job.Delay, ttr job.TTR, body job.Body, override bool) (*job.Job, error)
	LoadReadyJob(topic job.Topic, id job.Id, version job.Version) (*job.Job, error)
	DeleteJob(topic job.Topic, id job.Id) error
}

Pool is an interface for manage information of jobs.

func New

func New(s store.Store, l log.Logger) Pool

New a pool with logger and storage

Jump to

Keyboard shortcuts

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