Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Partitioner ¶
type Partitioner interface { RLock() Pick() int RUnlock() }
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func New ¶
func New(cfg ServiceConfig) *Service
func (*Service) Schedule ¶
func (s *Service) Schedule(ctx context.Context, job entities.ScheduledJob) (entities.ScheduledJob, error)
type ServiceConfig ¶
type ServiceConfig struct { Log zerolog.Logger DB *storage.DB Partitioner Partitioner }
Click to show internal directories.
Click to hide internal directories.