Avoid duplication of fields in filter struct.

This commit is contained in:
Eugene Bujak
2018-11-28 17:29:48 +03:00
parent feabc21864
commit 4eb122e973
2 changed files with 12 additions and 10 deletions

View File

@@ -67,8 +67,8 @@ var defaultValues = ServerConfig{
}
type Filter struct {
ID int64
Rules []string
ID int64 `json:"id"` // auto-assigned when filter is added (see nextFilterID), json by default keeps ID uppercase but we need lowercase
Rules []string `json:"-" yaml:"-"` // not in yaml or json
}
//