Use dynamodbav tags to override json tags.

This commit is contained in:
Ludovic Fernandez 2019-06-24 09:14:03 +02:00 committed by Traefiker Bot
parent 468e4ebd98
commit 32fd52c698

View File

@ -408,14 +408,14 @@ type Users []string
// Basic HTTP basic authentication
type Basic struct {
Users `json:"-" mapstructure:","`
Users `json:"-" mapstructure:"," dynamodbav:"users,omitempty"`
UsersFile string `json:"usersFile,omitempty"`
RemoveHeader bool `json:"removeHeader,omitempty"`
}
// Digest HTTP authentication
type Digest struct {
Users `json:"-" mapstructure:","`
Users `json:"-" mapstructure:"," dynamodbav:"users,omitempty"`
UsersFile string `json:"usersFile,omitempty"`
RemoveHeader bool `json:"removeHeader,omitempty"`
}
@ -511,7 +511,7 @@ type ClientTLS struct {
CA string `description:"TLS CA" json:"ca,omitempty"`
CAOptional bool `description:"TLS CA.Optional" json:"caOptional,omitempty"`
Cert string `description:"TLS cert" json:"cert,omitempty"`
Key string `description:"TLS key" json:"-"`
Key string `description:"TLS key" json:"-" dynamodbav:"key,omitempty"`
InsecureSkipVerify bool `description:"TLS insecure skip verify" json:"insecureSkipVerify,omitempty"`
}