refactor survery cmd

move package files to pkg
This commit is contained in:
Robin Olsen
2026-02-13 10:13:41 +01:00
parent fc5156a0ad
commit e994c890f4
11 changed files with 23 additions and 38 deletions

17
pkg/task/types.go Normal file
View File

@@ -0,0 +1,17 @@
package task
import (
"context"
"github.com/LazyBachelor/LazyPM/internal/service"
)
type TaskConfig = service.Config
type Interface interface {
Run(context.Context, TaskConfig) error
}
type ConfigFunc func() TaskConfig
type ValidateFunc func(context.Context, *service.Services) (ok bool, err error)
type DbStateFunc func(context.Context, *service.Services) error