fleet/server/platform/mysql/config.go
Victor Lyuboslavsky 506901443d
Moved common_mysql package to server/platform/mysql (#38017)
<!-- Add the related story/sub-task/bug number, like Resolves #123, or
remove if NA -->
**Related issue:** Resolves #37244

# Checklist for submitter

If some of the following don't apply, delete the relevant line.

- [x] Changes file added for user-visible changes in `changes/`,
`orbit/changes/` or `ee/fleetd-chrome/changes`.
See [Changes
files](https://github.com/fleetdm/fleet/blob/main/docs/Contributing/guides/committing-changes.md#changes-files)
for more information.

## Testing

- [x] QA'd all new/changed functionality manually



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

* **Refactor**
* Internal MySQL utility package reorganized and all internal imports
updated to the new platform location; no changes to end-user
functionality or behavior.

* **Documentation**
* Added platform package documentation describing infrastructure
responsibilities and architectural boundaries to guide maintainers.

<sub>✏️ Tip: You can customize this high-level summary in your review
settings.</sub>
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2026-01-08 13:17:19 -06:00

30 lines
817 B
Go

package mysql
// MysqlConfig defines MySQL connection configuration.
// This is a local copy of the fields needed from server/config.MysqlConfig
// to avoid pulling in heavy dependencies (AWS SDK, viper, etc.).
type MysqlConfig struct {
Protocol string
Address string
Username string
Password string
PasswordPath string
Database string
TLSCert string
TLSKey string
TLSCA string
TLSServerName string
TLSConfig string
MaxOpenConns int
MaxIdleConns int
ConnMaxLifetime int
SQLMode string
Region string
}
// LoggingConfig defines logging configuration.
// This is a local copy of the fields needed from server/config.LoggingConfig.
type LoggingConfig struct {
TracingEnabled bool
TracingType string
}