MCPcopy
hub / github.com/gofiber/fiber / GetCBOR

Method GetCBOR

shared_state.go:180–182  ·  view source on GitHub ↗
(key string, out any)

Source from the content-addressed store, hash-verified

178}
179
180func (s *SharedState) GetCBOR(key string, out any) ([]byte, bool, error) { //nolint:gocritic // Keep unnamed returns for clarity.
181 return s.GetCBORWithContext(context.Background(), key, out)
182}
183
184func (s *SharedState) GetCBORWithContext(ctx context.Context, key string, out any) ([]byte, bool, error) { //nolint:gocritic // Keep unnamed returns for clarity.
185 if err := s.ensureStorage(); err != nil {

Calls 1

GetCBORWithContextMethod · 0.95