feat: added meld.yml structs
This commit is contained in:
@@ -1 +1,24 @@
|
|||||||
package meld
|
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"`
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user