MCPcopy Create free account
hub / github.com/cortexproject/cortex / GetContent

Method GetContent

pkg/api/handlers.go:68–79  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

66}
67
68func (pc *IndexPageContent) GetContent() map[string]map[string]string {
69 pc.mu.Lock()
70 defer pc.mu.Unlock()
71
72 result := map[string]map[string]string{}
73 for k, v := range pc.content {
74 sm := map[string]string{}
75 maps.Copy(sm, v)
76 result[k] = sm
77 }
78 return result
79}
80
81var indexPageTemplate = `
82<!DOCTYPE html>

Callers 1

indexHandlerFunction · 0.80

Calls 1

CopyMethod · 0.45

Tested by

no test coverage detected