Move interface assertions to a test file (#839)

This is the only dependency on YAML in the model package.
Moving it to the tests avoids pulling a dependency into the
main module of applications that don't otherwise use YAML.

Signed-off-by: Michael Siegenthaler <msiegen@google.com>
2 files changed
tree: 8fe76f2b8409b9ae4a774acaa229b0a5136de431
  1. .circleci/
  2. .github/
  3. assets/
  4. config/
  5. expfmt/
  6. helpers/
  7. model/
  8. promslog/
  9. route/
  10. scripts/
  11. server/
  12. version/
  13. .gitignore
  14. .golangci.yml
  15. .yamllint
  16. CHANGELOG.md
  17. CODE_OF_CONDUCT.md
  18. CONTRIBUTING.md
  19. go.mod
  20. go.sum
  21. LICENSE
  22. MAINTAINERS.md
  23. Makefile
  24. Makefile.common
  25. NOTICE
  26. README.md
  27. RELEASE.md
  28. SECURITY.md
README.md

Common

circleci OpenSSF Scorecard

This repository contains Go libraries that are shared across Prometheus components and libraries. They are considered internal to Prometheus, without any stability guarantees for external usage.

  • assets: Embedding of static assets with gzip support
  • config: Common configuration structures
  • expfmt: Decoding and encoding for the exposition format
  • model: Shared data structures
  • promslog: A logging wrapper around log/slog
  • route: A routing wrapper around httprouter using context.Context
  • server: Common servers
  • version: Version information and metrics