MCPcopy
hub / github.com/cortexlabs/cortex / Service

Interface Service

pkg/async-gateway/service.go:34–37  ·  view source on GitHub ↗

Service provides an interface to the async-gateway business logic

Source from the content-addressed store, hash-verified

32
33// Service provides an interface to the async-gateway business logic
34type Service interface {
35 CreateWorkload(id string, apiName string, queueURL string, payload io.Reader, headers http.Header) (string, error)
36 GetWorkload(id string, apiName string) (GetWorkloadResponse, error)
37}
38
39type service struct {
40 logger *zap.SugaredLogger

Callers 2

CreateWorkloadMethod · 0.65
GetWorkloadMethod · 0.65

Implementers 2

servicepkg/async-gateway/service.go
Endpointpkg/async-gateway/endpoint.go

Calls

no outgoing calls

Tested by

no test coverage detected