feat: added meld.yml structs

This commit is contained in:
Darwin Cereska
2026-03-19 13:59:56 +01:00
parent 7f8db9e3a8
commit 4aeb44c5bb

View File

@@ -1 +1,24 @@
package meld
type MeldConfig struct {
Version string `yaml:"version"`
Pools []Pool `yaml:"pools"`
}
type Pool struct {
Name string `yaml:"name"`
Size int `yaml:"size"`
Strategy string `yaml:"strategy"`
Rules []any `yaml:"rules"`
}
type Attribute struct {
Name string `yaml:"attribute"`
MaxDiff float64 `yaml:"max_diff"`
RelaxRate float64 `yaml:"relax_rate"`
}
type Tag struct {
Name string `yaml:"tag"`
MatchExact bool `yaml:"match_exact"`
}