Skip to content

Commit

Permalink
--amend
Browse files Browse the repository at this point in the history
  • Loading branch information
wvxiw8 committed Sep 11, 2024
1 parent 9cffe6a commit fea7c00
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 18 deletions.
4 changes: 2 additions & 2 deletions cmd/swagger/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ func main() {
lg.Fatal("error setup swagger api", zap.Error(err))
}

go checker.PeriodicalCheckup(ctx, conf.PeriodicalCheckDuration, entClient, lg)
go checker.PeriodicalCheckup(ctx, conf.PeriodicCheckDuration, entClient, lg)

runUnblockPeriodically(ctx, entClient, conf.PeriodicalCheckDuration, lg)
runUnblockPeriodically(ctx, entClient, conf.PeriodicCheckDuration, lg)

// Swagger servers handles signals and gracefully shuts down by itself
if err := server.Serve(); err != nil {
Expand Down
17 changes: 8 additions & 9 deletions config.json
Original file line number Diff line number Diff line change
@@ -1,27 +1,26 @@
{
"db": {
"host": "localhost",
"host": "postgres",
"port": "5432",
"user": "csr",
"database": "csr",
"showSql": false
},
"JWTSecretKey": 123,
"email": {
"serverHost": "smtp.yandex.ru",
"serverPort": 587,
"password": "joqxamaascolakdq",
"senderFromAddress": "[email protected]",
"senderFromName": "Lyonkin Kot",
"isSendRequired": true,
"serverHost": "any",
"serverPort": 1,
"password": "any",
"senderFromAddress": "any",
"senderFromName": "any",
"confirmLinkExpiration": "15m",
"senderWebsiteUrl": "https://stage.csr.golangforall.com/"
"isSendRequired": false
},
"password": {
"length": 8,
"resetLinkExpiration": "15m"
},
"periodicalCheckDuration": "4h",
"periodicCheckDuration": "4h",
"server": {
"port": 8080
},
Expand Down
14 changes: 7 additions & 7 deletions internal/config/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ import (
)

type AppConfig struct {
Password Password
JWTSecretKey string `validate:"required"`
Email Email
PeriodicalCheckDuration time.Duration `validate:"required"`
Server Server
DB DB
AccessBindings []RoleEndpointBinding
Password Password
JWTSecretKey string `validate:"required"`
Email Email
PeriodicCheckDuration time.Duration `validate:"required"`
Server Server
DB DB
AccessBindings []RoleEndpointBinding
}

type DB struct {
Expand Down

0 comments on commit fea7c00

Please sign in to comment.