Documentation ¶
Index ¶
- type Option
- type ServiceV2
- func (svc *ServiceV2) Cancel(id primitive.ObjectID, by primitive.ObjectID) (err error)
- func (svc *ServiceV2) Enqueue(t *models2.TaskV2, by primitive.ObjectID) (t2 *models2.TaskV2, err error)
- func (svc *ServiceV2) SaveTask(t *models2.TaskV2, by primitive.ObjectID) (err error)
- func (svc *ServiceV2) SetInterval(interval time.Duration)
- func (svc *ServiceV2) Start()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(svc interfaces.TaskSchedulerService)
func WithConfigPath ¶
func WithInterval ¶
type ServiceV2 ¶
type ServiceV2 struct {
// contains filtered or unexported fields
}
func (*ServiceV2) SetInterval ¶
Click to show internal directories.
Click to hide internal directories.