MCPcopy
hub / github.com/grafana/tempo / NewBackend

Function NewBackend

tempodb/backend/local/local.go:32–43  ·  view source on GitHub ↗
(cfg *Config)

Source from the content-addressed store, hash-verified

30)
31
32func NewBackend(cfg *Config) (*Backend, error) {
33 err := os.MkdirAll(cfg.Path, 0o700)
34 if err != nil {
35 return nil, err
36 }
37
38 l := &Backend{
39 cfg: cfg,
40 }
41
42 return l, nil
43}
44
45func New(cfg *Config) (backend.RawReader, backend.RawWriter, backend.Compactor, error) {
46 l, err := NewBackend(cfg)

Callers 7

NewFunction · 0.92
Test_MemberlistFunction · 0.92
Test_LeaderElectionFunction · 0.92
Test_ReportLoopFunction · 0.92
TestWrongKVFunction · 0.92
NewFunction · 0.85

Calls

no outgoing calls

Tested by 5

Test_MemberlistFunction · 0.74
Test_LeaderElectionFunction · 0.74
Test_ReportLoopFunction · 0.74
TestWrongKVFunction · 0.74