MCPcopy
hub / github.com/pingcap/tidb / PrintTaskWithJSON

Function PrintTaskWithJSON

br/pkg/stream/stream_status.go:73–77  ·  view source on GitHub ↗

PrintTaskWithJSON make a TaskPrinter, which prints tasks as json to the console directly.

(c glue.ConsoleOperations)

Source from the content-addressed store, hash-verified

71// PrintTaskWithJSON make a TaskPrinter,
72// which prints tasks as json to the console directly.
73func PrintTaskWithJSON(c glue.ConsoleOperations) TaskPrinter {
74 return &printByJSON{
75 console: c,
76 }
77}
78
79type teeTaskPrinter struct {
80 output *[]TaskStatus

Callers 1

makeStatusControllerFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected