Files
gost-plus/runner/task.go
T
2024-04-22 23:14:36 +08:00

17 lines
188 B
Go

package runner
import (
"context"
)
type TaskID string
const (
TaskUpdateStats TaskID = "service.stats.update"
)
type Task interface {
ID() TaskID
Run(ctx context.Context) error
}