mirror of
https://github.com/go-gost/gost-plus.git
synced 2024-08-11 17:43:16 +00:00
17 lines
188 B
Go
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
|
|
}
|