27 lines
356 B
Go
27 lines
356 B
Go
package pledge
|
|
|
|
import (
|
|
"context"
|
|
"nova_task/internal/svc"
|
|
)
|
|
|
|
type Pledge struct {
|
|
ctx context.Context
|
|
svcCtx *svc.ServiceContext
|
|
}
|
|
|
|
func NewPledge(ctx context.Context, svcCtx *svc.ServiceContext) *Pledge {
|
|
return &Pledge{
|
|
ctx: ctx,
|
|
svcCtx: svcCtx,
|
|
}
|
|
}
|
|
|
|
func (p *Pledge) Spec() string {
|
|
return "@every 30m"
|
|
}
|
|
|
|
func (p *Pledge) Run() {
|
|
|
|
}
|