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

Function newServ

pkg/util/services/basic_service_test.go:33–39  ·  view source on GitHub ↗
(conf servConf)

Source from the content-addressed store, hash-verified

31}
32
33func newServ(conf servConf) *serv {
34 s := &serv{
35 conf: conf,
36 }
37 s.Service = NewBasicService(s.startUp, s.run, s.shutDown)
38 return s
39}
40
41func (s *serv) startUp(ctx context.Context) error {
42 select {

Callers 2

TestStopInNewFunction · 0.85
runTestCaseFunction · 0.85

Calls 1

NewBasicServiceFunction · 0.85

Tested by

no test coverage detected