Overview of flytestdlib components
mainThe flytestdlib library provides shared Go components for building robust applications. Key modules include:
- config: Enables strongly typed configuration using Go structs, including parsing, validation, and watching for changes.
- cli/pflags: Tool to generate pflags for all fields in a given struct.
- storage: Abstract storage library supporting S3, Azure, GCS (via stow), in-memory storage for testing, and native protobuf support.
- contextutils: A wrapper around Go's
contextto set and get known keys. - logger: A configurable, taggable, and context-aware wrapper around
logrus. - profutils: Starts an HTTP server providing
/metrics(Prometheus),/healthcheck, and/versionendpoints. - promutils: Provides a
Scopeinstance for convenient construction and scoping of Prometheus metrics per component. - atomic: A wrapper around
sync.atomicproviding types likeAtomicInt32. - sets: Strongly typed and convenient interface sets.
- utils and version: General utility and versioning modules.