MCPcopy Create free account
hub / github.com/krau/SaveAny-Bot / NewTaskFactory

Function NewTaskFactory

api/factory.go:35–37  ·  view source on GitHub ↗

NewTaskFactory 创建任务工厂

(ctx context.Context)

Source from the content-addressed store, hash-verified

33
34// NewTaskFactory 创建任务工厂
35func NewTaskFactory(ctx context.Context) *TaskFactory {
36 return &TaskFactory{ctx: ctx}
37}
38
39// CreateTask 创建任务
40func (f *TaskFactory) CreateTask(req *CreateTaskRequest) (*CreateTaskResponse, error) {

Callers 3

NewServerFunction · 0.85
setupTestServerFunction · 0.85

Calls

no outgoing calls

Tested by 2

setupTestServerFunction · 0.68