fleet/server/platform
Victor Lyuboslavsky 6b3bb8a961
slog migration: platform/mysql and related logic (#40072)
<!-- Add the related story/sub-task/bug number, like Resolves #123, or
remove if NA -->
**Related issue:** Resolves #40054 

# Checklist for submitter

- [ ] Changes file added for user-visible changes in `changes/`,
`orbit/changes/` or `ee/fleetd-chrome/changes`.
  - already included in previous PR

## Testing

- [x] Added/updated automated tests
- [x] QA'd all new/changed functionality manually


<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

* **Refactor**
* Standardized logging infrastructure across the database and storage
layers for improved consistency and maintainability.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2026-02-19 08:27:24 -06:00
..
authz Activity bounded context: Complete read operations (#38555) 2026-02-09 15:29:12 -06:00
endpointer Migrate platform/endpointer and platform/middleware/ratelimit to slog. (#39928) 2026-02-18 10:09:05 -06:00
http Correct err check endpoint (#39559) 2026-02-10 09:23:27 -05:00
logging Migrate platform/endpointer and platform/middleware/ratelimit to slog. (#39928) 2026-02-18 10:09:05 -06:00
middleware Migrate platform/endpointer and platform/middleware/ratelimit to slog. (#39928) 2026-02-18 10:09:05 -06:00
mysql slog migration: platform/mysql and related logic (#40072) 2026-02-19 08:27:24 -06:00
arch_test.go Change Datastore.logger type to *logging.Logger (#39938) 2026-02-17 15:29:52 -06:00
README.md Moved common_mysql package to server/platform/mysql (#38017) 2026-01-08 13:17:19 -06:00

Platform packages

This directory contains infrastructure and cross-cutting technical concerns that are independent of Fleet's business domain. These packages provide foundational capabilities used across the codebase.

Platform vs domain

Following separation of concerns, we distinguish:

  • Platform (infrastructure): Technical concerns like database connectivity, HTTP utilities, middleware, and transport-level error handling. These packages have no knowledge of Fleet's business domain.
  • Domain (business logic): Feature-specific code organized into bounded contexts. Domain packages depend on platform packages, not the reverse.

Guidelines

  • Platform packages must not import domain packages
  • Platform packages should be general-purpose and reusable
  • Architectural boundaries are enforced by arch_test.go