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

Method Set

CHALLENGE/_main.go:134–141  ·  view source on GitHub ↗
(ctx context.Context, id int64, item *Item)

Source from the content-addressed store, hash-verified

132}
133
134func (e *Example) Set(ctx context.Context, id int64, item *Item) error {
135 // enable write to new storage
136 // ...
137 if err := e.storeV1.Set(ctx, id, item); err != nil {
138 return fmt.Errorf("failed to store item: %w", err)
139 }
140 return nil
141}
142
143func (e *Example) Get(ctx context.Context, id int64) (*Item, error) {
144 // 1. enable shadow read from new storage

Callers

nothing calls this directly

Calls 1

SetMethod · 0.65

Tested by

no test coverage detected