MCPcopy Index your code
hub / github.com/cortexproject/cortex / AddLink

Method AddLink

pkg/api/handlers.go:55–66  ·  view source on GitHub ↗
(section, path, description string)

Source from the content-addressed store, hash-verified

53}
54
55func (pc *IndexPageContent) AddLink(section, path, description string) {
56 pc.mu.Lock()
57 defer pc.mu.Unlock()
58
59 sectionMap := pc.content[section]
60 if sectionMap == nil {
61 sectionMap = make(map[string]string)
62 pc.content[section] = sectionMap
63 }
64
65 sectionMap[path] = description
66}
67
68func (pc *IndexPageContent) GetContent() map[string]map[string]string {
69 pc.mu.Lock()

Callers 13

RegisterAlertmanagerMethod · 0.80
RegisterAPIMethod · 0.80
RegisterRuntimeConfigMethod · 0.80
RegisterDistributorMethod · 0.80
RegisterIngesterMethod · 0.80
RegisterRulerMethod · 0.80
RegisterRingMethod · 0.80
RegisterStoreGatewayMethod · 0.80
RegisterCompactorMethod · 0.80
RegisterMemberlistKVMethod · 0.80
TestIndexHandlerPrefixFunction · 0.80

Calls

no outgoing calls

Tested by 2

TestIndexHandlerPrefixFunction · 0.64
TestIndexPageContentFunction · 0.64