Skip to content

Commit

Permalink
feat(maestro): cleaning and fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
Luiz Pegoraro committed Sep 26, 2023
1 parent 86b8ffc commit 089acb0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 2 additions & 0 deletions cmd/maestro/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ func main() {
jCfg := config.LoadJaegerConfig(envPrefix)
sinksGRPCCfg := config.LoadGRPCConfig("orb", "sinks")
dbCfg := config.LoadPostgresConfig(envPrefix, svcName)
encryptionKey := config.LoadEncryptionKey(envPrefix)
svcCfg.EncryptionKey = encryptionKey.Key

// logger
var logger *zap.Logger
Expand Down
10 changes: 5 additions & 5 deletions pkg/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,10 @@ type InMemoryCacheConfig struct {
}

type EsConfig struct {
URL string `mapstructure:"url"`
Pass string `mapstructure:"pass"`
DB string `mapstructure:"db"`
Consumer string `mapstructure:"consumer"`
EncryptionKey string `mapstructure:"encryption_key"`
URL string `mapstructure:"url"`
Pass string `mapstructure:"pass"`
DB string `mapstructure:"db"`
Consumer string `mapstructure:"consumer"`
}

type JaegerConfig struct {
Expand All @@ -66,6 +65,7 @@ type BaseSvcConfig struct {
HttpPort string `mapstructure:"http_port"`
HttpServerCert string `mapstructure:"server_cert"`
HttpServerKey string `mapstructure:"server_key"`
EncryptionKey string `mapstructure:"encryption_key"`
}

type PostgresConfig struct {
Expand Down

0 comments on commit 089acb0

Please sign in to comment.