package
0.0.0-20200109191904-8d1786a9f689
Repository: https://github.com/joincivil/go-common.git
Documentation: pkg.go.dev
# Functions
NewInMemoryJobService builds a new InMemoryJobService.
NewJob creates a new job instance.
# Variables
ErrJobAlreadyExists is thrown when trying to submit a job with the same ID as one previously submitted.
ErrJobDoesNotExist is thrown when retrieving a job that does not exist.
# Structs
InMemoryJobService is an implementation of JobService that only stays in memory.
Job is a reference to a running job.
Subscription receives job updates.
# Interfaces
JobService interface defines what is needed to retrieve and persist jobs.