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

Method GetXMLWithContext

shared_state.go:208–214  ·  view source on GitHub ↗
(ctx context.Context, key string, out any)

Source from the content-addressed store, hash-verified

206}
207
208func (s *SharedState) GetXMLWithContext(ctx context.Context, key string, out any) ([]byte, bool, error) { //nolint:gocritic // Keep unnamed returns for clarity.
209 if err := s.ensureStorage(); err != nil {
210 return nil, false, err
211 }
212
213 return s.getEncodedWithContext(ctx, key, out, s.xmlDecoder, "xml")
214}
215
216func (s *SharedState) Delete(key string) error {
217 return s.DeleteWithContext(context.Background(), key)

Callers 1

GetXMLMethod · 0.95

Calls 2

ensureStorageMethod · 0.95
getEncodedWithContextMethod · 0.95

Tested by

no test coverage detected