mirror of
https://github.com/ClusterCockpit/cc-metric-collector.git
synced 2025-08-14 14:52:58 +02:00
Avoid go vet warning:
struct field tag `json:"..., omitempty"` not compatible with reflect.StructTag.Get: suspicious space in struct tag value struct field tag `json:"...", omitempty` not compatible with reflect.StructTag.Get: key:"value" pairs not separated by spaces
This commit is contained in:
@@ -7,14 +7,14 @@ import (
|
||||
|
||||
type sinkConfig struct {
|
||||
Type string `json:"type"`
|
||||
Host string `json:"host", omitempty`
|
||||
Port string `json:"port", omitempty`
|
||||
Database string `json:"database, omitempty"`
|
||||
User string `json:"user, omitempty"`
|
||||
Password string `json:"password", omitempty`
|
||||
Organization string `json:"organization", omitempty`
|
||||
SSL bool `json:"ssl", omitempty`
|
||||
MetaAsTags bool `json:"meta_as_tags", omitempty`
|
||||
Host string `json:"host,omitempty"`
|
||||
Port string `json:"port,omitempty"`
|
||||
Database string `json:"database,omitempty"`
|
||||
User string `json:"user,omitempty"`
|
||||
Password string `json:"password,omitempty"`
|
||||
Organization string `json:"organization,omitempty"`
|
||||
SSL bool `json:"ssl,omitempty"`
|
||||
MetaAsTags bool `json:"meta_as_tags,omitempty"`
|
||||
}
|
||||
|
||||
type sink struct {
|
||||
|
Reference in New Issue
Block a user