MCPcopy Create free account
hub / github.com/comerc/go-secrets / Set

Method Set

CHALLENGE/_viktor.go:25–34  ·  view source on GitHub ↗
(ctx context.Context, id int64, item *Item)

Source from the content-addressed store, hash-verified

23}
24
25func (e *Example) Set(ctx context.Context, id int64, item *Item) error {
26 // enable write to new storage
27 // ...
28
29 if err := e.storeV1.Set(ctx, id, item); err != nil {
30 return fmt.Errorf("failed to store item: %w", err)
31 }
32
33 return nil
34}
35
36func (e *Example) Get(ctx context.Context, id int64) (*Item, error) {
37 var item Item

Callers

nothing calls this directly

Calls 1

SetMethod · 0.65

Tested by

no test coverage detected