Skip to content

Commit

Permalink
Remove unused attribute in Config struct
Browse files Browse the repository at this point in the history
  • Loading branch information
martialblog committed Oct 18, 2023
1 parent 44b343f commit 0b2ec88
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions cmd/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,16 @@ import (
)

type Config struct {
BasicAuth string // Currently unused in CLI
Bearer string // Currently unused in CLI
Hostname string `env:"CHECK_ELASTICSEARCH_HOSTNAME"`
CAFile string `env:"CHECK_ELASTICSEARCH_CA_FILE"`
CertFile string `env:"CHECK_ELASTICSEARCH_CERT_FILE"`
KeyFile string `env:"CHECK_ELASTICSEARCH_KEY_FILE"`
Username string `env:"CHECK_ELASTICSEARCH_USERNAME"`
Password string `env:"CHECK_ELASTICSEARCH_PASSWORD"`
Port int
TLS bool
Insecure bool
Bearer string // Currently unused in CLI
Hostname string `env:"CHECK_ELASTICSEARCH_HOSTNAME"`
CAFile string `env:"CHECK_ELASTICSEARCH_CA_FILE"`
CertFile string `env:"CHECK_ELASTICSEARCH_CERT_FILE"`
KeyFile string `env:"CHECK_ELASTICSEARCH_KEY_FILE"`
Username string `env:"CHECK_ELASTICSEARCH_USERNAME"`
Password string `env:"CHECK_ELASTICSEARCH_PASSWORD"`
Port int
TLS bool
Insecure bool
}

// LoadFromEnv can be used to load struct values from 'env' tags.
Expand Down

0 comments on commit 0b2ec88

Please sign in to comment.