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

Method get

pkg/store/store_etcd.go:881–886  ·  view source on GitHub ↗
(key string, opts ...clientv3.OpOption)

Source from the content-addressed store, hash-verified

879}
880
881func (e *EtcdStore) get(key string, opts ...clientv3.OpOption) (*clientv3.GetResponse, error) {
882 ctx, cancel := context.WithTimeout(e.rawClient.Ctx(), DefaultRequestTimeout)
883 defer cancel()
884
885 return clientv3.NewKV(e.rawClient).Get(ctx, key, opts...)
886}
887
888func (e *EtcdStore) getPB(prefix string, id uint64, value pb) error {
889 data, err := e.getValue(getKey(prefix, id))

Callers 4

doGetBindServersMethod · 0.95
GetProxiesMethod · 0.95
SystemMethod · 0.95
getValuesMethod · 0.95

Calls 1

GetMethod · 0.80

Tested by

no test coverage detected