MCPcopy Create free account
hub / github.com/ByteStorage/FlyDB / Type

Method Type

engine/grpc/client/string.go:103–115  ·  view source on GitHub ↗
(key string)

Source from the content-addressed store, hash-verified

101}
102
103func (c *Client) Type(key string) (string, error) {
104 client, err := newGrpcClient(c.Addr)
105 if err != nil {
106 return "", err
107 }
108
109 typeResp, err := client.Type(context.Background(), &gstring.TypeRequest{Key: key})
110 if err != nil {
111 return "", err
112 }
113
114 return typeResp.Type, nil
115}
116
117func (c *Client) Append(key string, value string) error {
118 client, err := newGrpcClient(c.Addr)

Callers

nothing calls this directly

Calls 2

newGrpcClientFunction · 0.85
TypeMethod · 0.65

Tested by

no test coverage detected