MCPcopy
hub / github.com/micro/go-micro / GetService

Function GetService

registry/registry.go:79–81  ·  view source on GitHub ↗

Retrieve a service. A slice is returned since we separate Name/Version.

(name string)

Source from the content-addressed store, hash-verified

77
78// Retrieve a service. A slice is returned since we separate Name/Version.
79func GetService(name string) ([]*Service, error) {
80 return DefaultRegistry.GetService(name)
81}
82
83// List the services. Only returns service names.
84func ListServices() ([]*Service, error) {

Callers 9

listFlowsFunction · 0.92
initFunction · 0.92
serviceWithNameFunction · 0.92
initFunction · 0.92
registryGetFunction · 0.92
listAgentsFunction · 0.92
listServicesFunction · 0.92
describeServiceFunction · 0.92
registerHandlersFunction · 0.92

Calls 1

GetServiceMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…