MCPcopy Create free account
hub / github.com/comerc/yandex / Set

Method Set

CHALLENGE/_serg.go:129–136  ·  view source on GitHub ↗
(ctx context.Context, id int64, item *Item)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

SetMethod · 0.65

Tested by

no test coverage detected