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

Method Append

engine/grpc/client/string.go:117–130  ·  view source on GitHub ↗
(key string, value string)

Source from the content-addressed store, hash-verified

115}
116
117func (c *Client) Append(key string, value string) error {
118 client, err := newGrpcClient(c.Addr)
119 if err != nil {
120 return err
121 }
122 resp, err := client.Append(context.Background(), &gstring.AppendRequest{Key: key, Value: value})
123 if err != nil {
124 return err
125 }
126 if !resp.Ok {
127 return errors.New("Append operation failed")
128 }
129 return nil
130}
131
132func (c *Client) GetSet(key string, value interface{}) (interface{}, error) {
133 client, err := newGrpcClient(c.Addr)

Callers

nothing calls this directly

Calls 2

newGrpcClientFunction · 0.85
AppendMethod · 0.65

Tested by

no test coverage detected