Skip to content

Commit

Permalink
Merge pull request #329 from linkernetworks/johnlin/config-refactor
Browse files Browse the repository at this point in the history
[Task] move registry into src/config
  • Loading branch information
John-Lin authored Sep 25, 2018
2 parents 9e941cc + 8ace08c commit 0ac0e5e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
3 changes: 1 addition & 2 deletions src/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,14 @@ import (
"github.com/linkernetworks/logger"
"github.com/linkernetworks/mongo"
"github.com/linkernetworks/vortex/src/prometheusprovider"
"github.com/linkernetworks/vortex/src/registry"
)

// Config is the structure for vortex
type Config struct {
Mongo *mongo.MongoConfig `json:"mongo"`
Prometheus *prometheusprovider.PrometheusConfig `json:"prometheus"`
Registry *registry.Config `json:"registry"`
Kubernetes *kubernetesConfig `json:"kubernetes"`
Registry *registryConfig `json:"registry"`
Logger logger.LoggerConfig `json:"logger"`

// the version settings of the current application
Expand Down
5 changes: 5 additions & 0 deletions src/config/registry.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package config

type registryConfig struct {
URL string `json:"url"`
}
6 changes: 0 additions & 6 deletions src/registry/registry.go

This file was deleted.

0 comments on commit 0ac0e5e

Please sign in to comment.