MCPcopy Create free account
hub / github.com/MarioCarrion/todo-api-microservice-example / NewTaskHandler

Function NewTaskHandler

internal/rest/task_handler.go:30–34  ·  view source on GitHub ↗

NewTaskHandler ...

(svc TaskService)

Source from the content-addressed store, hash-verified

28
29// NewTaskHandler ...
30func NewTaskHandler(svc TaskService) *TaskHandler {
31 return &TaskHandler{
32 svc: svc,
33 }
34}
35
36func (t *TaskHandler) CreateTask(ctx context.Context, req CreateTaskRequestObject) (CreateTaskResponseObject, error) {
37 var priority *internal.Priority

Callers 6

TestTaskHandler_ReadTaskFunction · 0.92
newServerFunction · 0.92

Calls

no outgoing calls

Tested by 5

TestTaskHandler_ReadTaskFunction · 0.74