Skip to content

Commit

Permalink
Merge pull request #156 from linkernetworks/johnlin/fix-golint
Browse files Browse the repository at this point in the history
fix golint
  • Loading branch information
John-Lin authored Jul 24, 2018
2 parents 55fb83b + a05a1b5 commit c68aec7
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions src/prometheusprovider/promehteus.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ import (

// PrometheusConfig is the structure for Prometheus Config
type PrometheusConfig struct {
Url string `json:"url"`
URL string `json:"url"`
}

// Service is the structure for Service
type Service struct {
Url string
URL string
API prometheus.API
}

Expand All @@ -33,7 +33,7 @@ func New(url string) *Service {
newAPI := prometheus.NewAPI(client)

return &Service{
Url: url,
URL: url,
API: newAPI,
}
}
2 changes: 1 addition & 1 deletion src/server/response.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ type SignInResponse struct {
Error bool `json:"error"`
AuthRequired bool `json:"authenRequired,omitempty"`
Message string `json:"message"`
SignInUrl string `json:"signInUrl,omitempty"`
SignInURL string `json:"signInURL,omitempty"`
Session SessionResponse `json:"session,omitempty"`
}

Expand Down
8 changes: 4 additions & 4 deletions src/serviceprovider/serviceprovider.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ func New(cf config.Config) *Container {
logger.Infof("Connecting to mongodb: %s", cf.Mongo.Url)
mongo := mongo.New(cf.Mongo.Url)

logger.Infof("Connecting to prometheus: %s", cf.Prometheus.Url)
prometheus := prometheusprovider.New(cf.Prometheus.Url)
logger.Infof("Connecting to prometheus: %s", cf.Prometheus.URL)
prometheus := prometheusprovider.New(cf.Prometheus.URL)

kubeconfig := filepath.Join(os.Getenv("HOME"), ".kube", "config")
k8s, err := clientcmd.BuildConfigFromFlags("", kubeconfig)
Expand Down Expand Up @@ -90,8 +90,8 @@ func NewForTesting(cf config.Config) *Container {
logger.Infof("Connecting to mongodb: %s", cf.Mongo.Url)
mongo := mongo.New(cf.Mongo.Url)

logger.Infof("Connecting to prometheus: %s", cf.Prometheus.Url)
prometheus := prometheusprovider.New(cf.Prometheus.Url)
logger.Infof("Connecting to prometheus: %s", cf.Prometheus.URL)
prometheus := prometheusprovider.New(cf.Prometheus.URL)

clientset := fakeclientset.NewSimpleClientset()

Expand Down

0 comments on commit c68aec7

Please sign in to comment.