-
Notifications
You must be signed in to change notification settings - Fork 533
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #34 from alexander-melentyev/refactor/err
Delete err var shadowing
- Loading branch information
Showing
21 changed files
with
105 additions
and
106 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ parameters: | |
default: "go-service-template" | ||
image: | ||
type: string | ||
default: "evrone/go-service-template" | ||
default: "evrone/go-clean-template" | ||
|
||
orbs: | ||
docker: circleci/[email protected] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,35 @@ | ||
package config | ||
|
||
type Config struct { | ||
App `yaml:"app"` | ||
HTTP `yaml:"http"` | ||
Log `yaml:"logger"` | ||
PG `yaml:"postgres"` | ||
RMQ `yaml:"rabbitmq"` | ||
} | ||
type ( | ||
Config struct { | ||
App `yaml:"app"` | ||
HTTP `yaml:"http"` | ||
Log `yaml:"logger"` | ||
PG `yaml:"postgres"` | ||
RMQ `yaml:"rabbitmq"` | ||
} | ||
|
||
type App struct { | ||
Name string `env-required:"true" yaml:"name" env:"APP_NAME"` | ||
Version string `env-required:"true" yaml:"version" env:"APP_VERSION"` | ||
} | ||
App struct { | ||
Name string `env-required:"true" yaml:"name" env:"APP_NAME"` | ||
Version string `env-required:"true" yaml:"version" env:"APP_VERSION"` | ||
} | ||
|
||
type HTTP struct { | ||
Port string `env-required:"true" yaml:"port" env:"HTTP_PORT"` | ||
} | ||
HTTP struct { | ||
Port string `env-required:"true" yaml:"port" env:"HTTP_PORT"` | ||
} | ||
|
||
type Log struct { | ||
ZapLevel string `env-required:"true" yaml:"zap_level" env:"LOG_ZAP_LEVEL"` | ||
} | ||
Log struct { | ||
ZapLevel string `env-required:"true" yaml:"zap_level" env:"LOG_ZAP_LEVEL"` | ||
} | ||
|
||
type PG struct { | ||
PoolMax int `env-required:"true" yaml:"pool_max" env:"PG_POOL_MAX"` | ||
URL string `env-required:"true" env:"PG_URL"` | ||
} | ||
PG struct { | ||
PoolMax int `env-required:"true" yaml:"pool_max" env:"PG_POOL_MAX"` | ||
URL string `env-required:"true" env:"PG_URL"` | ||
} | ||
|
||
type RMQ struct { | ||
ServerExchange string `env-required:"true" yaml:"rpc_server_exchange" env:"RMQ_RPC_SERVER"` | ||
ClientExchange string `env-required:"true" yaml:"rpc_client_exchange" env:"RMQ_RPC_CLIENT"` | ||
URL string `env-required:"true" env:"RMQ_URL"` | ||
} | ||
RMQ struct { | ||
ServerExchange string `env-required:"true" yaml:"rpc_server_exchange" env:"RMQ_RPC_SERVER"` | ||
ClientExchange string `env-required:"true" yaml:"rpc_client_exchange" env:"RMQ_RPC_CLIENT"` | ||
URL string `env-required:"true" env:"RMQ_URL"` | ||
} | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
module github.com/evrone/go-service-template | ||
module github.com/evrone/go-clean-template | ||
|
||
go 1.16 | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.