MCPcopy Create free account
hub / github.com/deepflowio/deepflow / SetHeader

Method SetHeader

cli/ctl/common/table/table.go:53–59  ·  view source on GitHub ↗
(keys []string)

Source from the content-addressed store, hash-verified

51const indent = 2
52
53func (t *Table) SetHeader(keys []string) {
54 t.colSize = len(keys) + indent
55 for i, v := range keys {
56 t.parseDimension(v, i)
57 }
58 t.headers = append(t.headers, keys...)
59}
60
61func (t *Table) parseDimension(str string, colKey int) {
62 maxWidth := 0

Callers 15

listAgentGroupFunction · 0.80
listControllerFunction · 0.80
listIngerterFunction · 0.80
listSubDomainFunction · 0.80
listAgentGroupConfigFunction · 0.80
statsQueryFunction · 0.80
tableVmFunction · 0.80
tableVpcFunction · 0.80
tableHostFunction · 0.80
tableLldpFunction · 0.80
tablePortFunction · 0.80
tableNetworkFunction · 0.80

Calls 1

parseDimensionMethod · 0.95

Tested by 2

ExampleShortFunction · 0.64
ExampleChineseFunction · 0.64