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

Function NewCortexService

integration/e2ecortex/service.go:12–25  ·  view source on GitHub ↗
(
	name string,
	image string,
	command *e2e.Command,
	readiness e2e.ReadinessProbe,
	httpPort int,
	grpcPort int,
	otherPorts ...int,
)

Source from the content-addressed store, hash-verified

10}
11
12func NewCortexService(
13 name string,
14 image string,
15 command *e2e.Command,
16 readiness e2e.ReadinessProbe,
17 httpPort int,
18 grpcPort int,
19 otherPorts ...int,
20) *CortexService {
21 return &CortexService{
22 HTTPService: e2e.NewHTTPService(name, image, command, readiness, httpPort, append(otherPorts, grpcPort)...),
23 grpcPort: grpcPort,
24 }
25}
26
27func (s *CortexService) GRPCEndpoint() string {
28 return s.Endpoint(s.grpcPort)

Calls 1

NewHTTPServiceFunction · 0.92

Tested by

no test coverage detected