MCPcopy
hub / github.com/fagongzi/manba / getMetaClient

Method getMetaClient

pkg/client/client.go:90–97  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

88}
89
90func (c *client) getMetaClient() (rpcpb.MetaServiceClient, error) {
91 cli, err := c.clients.GetServiceClient(rpcpb.ServiceMeta)
92 if err != nil {
93 return nil, err
94 }
95
96 return cli.(rpcpb.MetaServiceClient), nil
97}
98
99func (c *client) putCluster(cluster metapb.Cluster) (uint64, error) {
100 meta, err := c.getMetaClient()

Callers 15

putClusterMethod · 0.95
RemoveClusterMethod · 0.95
GetClusterMethod · 0.95
GetClusterListMethod · 0.95
putServerMethod · 0.95
RemoveServerMethod · 0.95
GetServerMethod · 0.95
GetServerListMethod · 0.95
putAPIMethod · 0.95
RemoveAPIMethod · 0.95
GetAPIMethod · 0.95
GetAPIListMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected