Fix lint errors

This commit is contained in:
Manuel de Brito Fontes 2016-05-31 16:49:20 -04:00
parent 0b031b9894
commit 71ca55440b
16 changed files with 60 additions and 59 deletions

View file

@ -84,8 +84,8 @@ var (
sslDirectory = "/etc/nginx-ssl"
)
// NginxConfiguration ...
type NginxConfiguration struct {
// Configuration represents the content of nginx.conf file
type Configuration struct {
// http://nginx.org/en/docs/http/ngx_http_core_module.html#client_max_body_size
// Sets the maximum allowed size of the client request body
BodySize string `structs:"body-size,omitempty"`
@ -251,7 +251,7 @@ type NginxConfiguration struct {
type Manager struct {
ConfigFile string
defCfg NginxConfiguration
defCfg Configuration
defResolver string
@ -267,8 +267,8 @@ type Manager struct {
// defaultConfiguration returns the default configuration contained
// in the file default-conf.json
func newDefaultNginxCfg() NginxConfiguration {
cfg := NginxConfiguration{
func newDefaultNginxCfg() Configuration {
cfg := Configuration{
BodySize: bodySize,
ErrorLogLevel: errorLevel,
HSTS: true,