MCPcopy
hub / github.com/XiaoMi/naftis / Get

Method Get

src/api/service/task.go:28–30  ·  view source on GitHub ↗
(name, content, operator, serviceUID string, id uint, ctmin, ctmax int, revision uint)

Source from the content-addressed store, hash-verified

26type task struct{}
27
28func (task) Get(name, content, operator, serviceUID string, id uint, ctmin, ctmax int, revision uint) []model.Task {
29 return db.GetTask(name, content, operator, serviceUID, id, ctmin, ctmax, revision)
30}
31
32func (task) Add(tmplID uint, command int, content, operator, serviceUID, namespace string) error {
33 return worker.Feed(tmplID, command, content, operator, serviceUID, namespace, 1)

Callers 7

ServeHTTPMethod · 0.45
replaceMethod · 0.45
UserFunction · 0.45
ListTaskTmplsFunction · 0.45
ListTaskTmplVarsFunction · 0.45
ListTasksFunction · 0.45
AddTasksFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected