MCPcopy
hub / github.com/openfaas/faas / ServiceQuery

Interface ServiceQuery

gateway/scaling/service_query.go:9–12  ·  view source on GitHub ↗

ServiceQuery provides interface for replica querying/setting

Source from the content-addressed store, hash-verified

7
8// ServiceQuery provides interface for replica querying/setting
9type ServiceQuery interface {
10 GetReplicas(service, namespace string) (response ServiceQueryResponse, err error)
11 SetReplicas(service, namespace string, count uint64) error
12}
13
14// ServiceQueryResponse response from querying a function status
15type ServiceQueryResponse struct {

Callers 5

GetMethod · 0.65
ScaleMethod · 0.65
scaleServiceFunction · 0.65
ScaleMethod · 0.65
scaleServiceFunction · 0.65

Implementers 1

ExternalServiceQuerygateway/plugin/external.go

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…