MCPcopy Index your code
hub / github.com/ByteStorage/FlyDB / SetCard

Function SetCard

cmd/client/set.go:76–90  ·  view source on GitHub ↗
(c *grumble.Context)

Source from the content-addressed store, hash-verified

74}
75
76func SetCard(c *grumble.Context) error {
77 key := c.Args.String("key")
78 if key == "" {
79 fmt.Println("key is empty")
80 return nil
81 }
82
83 count, err := newClient().SCard(key)
84 if err != nil {
85 fmt.Println("SCard data error: ", err)
86 return err
87 }
88 fmt.Println("SCard count:", count)
89 return nil
90}
91
92func SetMembers(c *grumble.Context) error {
93 key := c.Args.String("key")

Callers

nothing calls this directly

Calls 3

newClientFunction · 0.85
SCardMethod · 0.65
StringMethod · 0.45

Tested by

no test coverage detected