Skip to content

Commit

Permalink
use config timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
reindert-vetter committed Aug 19, 2023
1 parent 36fc595 commit 07f5705
Show file tree
Hide file tree
Showing 3 changed files with 74 additions and 23 deletions.
4 changes: 4 additions & 0 deletions config/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ var App = struct {
OsArgs []string
Port int
Host string
Timeout time.Duration
Cipher string
Debug bool
Timezone *time.Location
Expand All @@ -38,6 +39,9 @@ var App = struct {
*/
Name: env.StringOr("APP_NAME", "Confetti"),


Timeout: 3 * time.Minute,

/*
|--------------------------------------------------------------------------
| Application URL
Expand Down
46 changes: 23 additions & 23 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,43 +4,43 @@ go 1.18

require (
github.com/confetti-framework/errors v0.12.0
github.com/confetti-framework/framework v0.29.5
github.com/confetti-framework/framework v0.30.6
github.com/confetti-framework/syslog v0.1.1
golang.org/x/text v0.3.7
golang.org/x/text v0.7.0
)

require (
github.com/chzyer/readline v1.5.0 // indirect
github.com/chzyer/readline v1.5.1 // indirect
github.com/confetti-framework/baker v1.1.1 // indirect
github.com/go-sql-driver/mysql v1.6.0 // indirect
github.com/go-sql-driver/mysql v1.7.0 // indirect
github.com/google/uuid v1.3.0 // indirect
github.com/gorilla/mux v1.8.0 // indirect
github.com/jackc/chunkreader/v2 v2.0.1 // indirect
github.com/jackc/pgconn v1.12.1 // indirect
github.com/jackc/pgconn v1.14.0 // indirect
github.com/jackc/pgio v1.0.0 // indirect
github.com/jackc/pgpassfile v1.0.0 // indirect
github.com/jackc/pgproto3/v2 v2.3.0 // indirect
github.com/jackc/pgservicefile v0.0.0-20200714003250-2b9c44734f2b // indirect
github.com/jackc/pgtype v1.11.0 // indirect
github.com/jackc/pgx/v4 v4.16.1 // indirect
github.com/jedib0t/go-pretty/v6 v6.3.1 // indirect
github.com/joho/godotenv v1.4.0 // indirect
github.com/jackc/pgproto3/v2 v2.3.2 // indirect
github.com/jackc/pgservicefile v0.0.0-20221227161230-091c0ba34f0a // indirect
github.com/jackc/pgtype v1.14.0 // indirect
github.com/jackc/pgx/v4 v4.18.0 // indirect
github.com/jedib0t/go-pretty/v6 v6.4.4 // indirect
github.com/joho/godotenv v1.5.1 // indirect
github.com/manifoldco/promptui v0.9.0 // indirect
github.com/mattn/go-runewidth v0.0.13 // indirect
github.com/mattn/go-runewidth v0.0.14 // indirect
github.com/mitchellh/colorstring v0.0.0-20190213212951-d06e56a500db // indirect
github.com/motemen/go-quickfix v0.0.0-20210528191040-5ef99de20668 // indirect
github.com/motemen/go-quickfix v0.0.0-20221231055916-ee806ba52f07 // indirect
github.com/peterh/liner v1.2.2 // indirect
github.com/rivo/uniseg v0.2.0 // indirect
github.com/schollz/progressbar/v3 v3.8.6 // indirect
github.com/rivo/uniseg v0.4.3 // indirect
github.com/schollz/progressbar/v3 v3.13.0 // indirect
github.com/spf13/cast v1.5.0 // indirect
github.com/tidwall/gjson v1.14.1 // indirect
github.com/tidwall/gjson v1.14.4 // indirect
github.com/tidwall/match v1.1.1 // indirect
github.com/tidwall/pretty v1.2.0 // indirect
github.com/tidwall/pretty v1.2.1 // indirect
github.com/vigneshuvi/GoDateFormat v0.0.0-20210204121036-67364dc23c79 // indirect
golang.org/x/crypto v0.0.0-20220511200225-c6db032c6c88 // indirect
golang.org/x/mod v0.6.0-dev.0.20220106191415-9b9b3d81d5e3 // indirect
golang.org/x/sys v0.0.0-20220503163025-988cb79eb6c6 // indirect
golang.org/x/term v0.0.0-20220411215600-e5f449aeb171 // indirect
golang.org/x/tools v0.1.10 // indirect
golang.org/x/xerrors v0.0.0-20220411194840-2f41105eb62f // indirect
golang.org/x/crypto v0.6.0 // indirect
golang.org/x/mod v0.8.0 // indirect
golang.org/x/sys v0.5.0 // indirect
golang.org/x/term v0.5.0 // indirect
golang.org/x/tools v0.6.0 // indirect
golang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 // indirect
)
Loading

0 comments on commit 07f5705

Please sign in to comment.