wip: create different backend handlers (#426)

This commit is contained in:
Christoph Haas
2025-05-30 23:19:48 +02:00
parent 33dcc80078
commit 15d035ec10
12 changed files with 1229 additions and 103 deletions

View File

@@ -38,9 +38,13 @@ func (b *Backend) Validate() error {
return nil
}
type BackendBase struct {
Id string `yaml:"id"` // A unique id for the backend
DisplayName string `yaml:"display_name"` // A display name for the backend
}
type BackendMikrotik struct {
Id string `yaml:"id"` // A unique id for the Mikrotik backend
DisplayName string `yaml:"display_name"` // A display name for the Mikrotik backend
BackendBase `yaml:",inline"` // Embed the base fields
ApiUrl string `yaml:"api_url"` // The base URL of the Mikrotik API (e.g., "https://10.10.10.10:8729/rest")
ApiUser string `yaml:"api_user"`