MCPcopy Index your code
hub / github.com/GoEdgeLab/EdgeNode / NewQueryLabel

Function NewQueryLabel

internal/utils/dbs/query_label.go:13–19  ·  view source on GitHub ↗
(manager *QueryStatManager, query string)

Source from the content-addressed store, hash-verified

11}
12
13func NewQueryLabel(manager *QueryStatManager, query string) *QueryLabel {
14 return &QueryLabel{
15 manager: manager,
16 query: query,
17 before: time.Now(),
18 }
19}
20
21func (this *QueryLabel) End() {
22 var cost = time.Since(this.before).Seconds()

Callers 1

AddQueryMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected