Newer
Older
package core
import "github.com/google/uuid"
// Unique identifier for a Job.
//
// Hint: It's just a UUID.
type JobId string
// Implement the Stringer interface.
func (id JobId) String() string {
return string(id)
}
// Generate a new unique job id.
func generateJobId() JobId {
id := uuid.New().String()
return JobId(id)
}