Skip to content

Commit baab2f7

Browse files
authored
[Chore] Package Upgrades Jan 2025.
* gqlgen * validator * gocql * go-redis * xid * afero * testify * swag * gqlparser * automaxprocs * crypto
2 parents 47fcb77 + 5eeede0 commit baab2f7

File tree

11 files changed

+382
-376
lines changed

11 files changed

+382
-376
lines changed

docs/docs.go

+16-8
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/swagger.json

+15-7
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"name": "GPL-3.0",
2222
"url": "https://opensource.org/licenses/GPL-3.0"
2323
},
24-
"version": "1.7.6"
24+
"version": "1.7.7"
2525
},
2626
"host": "localhost:44243",
2727
"basePath": "/api/rest/v1",
@@ -1012,6 +1012,17 @@
10121012
}
10131013
}
10141014
},
1015+
"model_http.Metadata": {
1016+
"type": "object",
1017+
"properties": {
1018+
"num_records": {
1019+
"type": "integer"
1020+
},
1021+
"quiz_id": {
1022+
"type": "string"
1023+
}
1024+
}
1025+
},
10151026
"model_http.StatsResponse": {
10161027
"type": "object",
10171028
"properties": {
@@ -1023,11 +1034,8 @@
10231034
}
10241035
}
10251036
},
1026-
"num_records": {
1027-
"type": "integer"
1028-
},
1029-
"quiz_id": {
1030-
"type": "string"
1037+
"metadata": {
1038+
"$ref": "#/definitions/model_http.Metadata"
10311039
},
10321040
"records": {
10331041
"type": "array",
@@ -1054,4 +1062,4 @@
10541062
"in": "header"
10551063
}
10561064
}
1057-
}
1065+
}

docs/swagger.yaml

+10-5
Original file line numberDiff line numberDiff line change
@@ -171,17 +171,22 @@ definitions:
171171
- threshold
172172
- token
173173
type: object
174+
model_http.Metadata:
175+
properties:
176+
num_records:
177+
type: integer
178+
quiz_id:
179+
type: string
180+
type: object
174181
model_http.StatsResponse:
175182
properties:
176183
links:
177184
properties:
178185
next_page:
179186
type: string
180187
type: object
181-
num_records:
182-
type: integer
183-
quiz_id:
184-
type: string
188+
metadata:
189+
$ref: '#/definitions/model_http.Metadata'
185190
records:
186191
items:
187192
$ref: '#/definitions/model_cassandra.Response'
@@ -206,7 +211,7 @@ info:
206211
name: GPL-3.0
207212
url: https://opensource.org/licenses/GPL-3.0
208213
title: Multiple Choice Question Platform.
209-
version: 1.7.6
214+
version: 1.7.7
210215
paths:
211216
/health:
212217
get:

go.mod

+48-46
Original file line numberDiff line numberDiff line change
@@ -1,51 +1,53 @@
11
module github.com/surahman/mcq-platform
22

3-
go 1.22
3+
go 1.22.5
4+
5+
toolchain go1.23.5
46

57
require (
6-
github.com/99designs/gqlgen v0.17.49
8+
github.com/99designs/gqlgen v0.17.64
79
github.com/gin-gonic/gin v1.10.0
8-
github.com/go-playground/validator/v10 v10.22.0
9-
github.com/gocql/gocql v1.6.0
10+
github.com/go-playground/validator/v10 v10.24.0
11+
github.com/gocql/gocql v1.7.0
1012
github.com/golang-jwt/jwt/v4 v4.5.1
1113
github.com/golang/mock v1.6.0
1214
github.com/pkg/errors v0.9.1
13-
github.com/redis/go-redis/v9 v9.6.1
14-
github.com/rs/xid v1.5.0
15-
github.com/spf13/afero v1.11.0
15+
github.com/redis/go-redis/v9 v9.7.0
16+
github.com/rs/xid v1.6.0
17+
github.com/spf13/afero v1.12.0
1618
github.com/spf13/viper v1.19.0
17-
github.com/stretchr/testify v1.9.0
19+
github.com/stretchr/testify v1.10.0
1820
github.com/swaggo/files v1.0.1
1921
github.com/swaggo/gin-swagger v1.6.0
20-
github.com/swaggo/swag v1.16.3
21-
github.com/vektah/gqlparser/v2 v2.5.16
22-
go.uber.org/automaxprocs v1.5.3
22+
github.com/swaggo/swag v1.16.4
23+
github.com/vektah/gqlparser/v2 v2.5.22
24+
go.uber.org/automaxprocs v1.6.0
2325
go.uber.org/zap v1.27.0
24-
golang.org/x/crypto v0.26.0
26+
golang.org/x/crypto v0.32.0
2527
gopkg.in/yaml.v3 v3.0.1
2628
)
2729

2830
require (
2931
github.com/KyleBanks/depth v1.2.1 // indirect
30-
github.com/agnivade/levenshtein v1.1.1 // indirect
31-
github.com/bytedance/sonic v1.11.6 // indirect
32-
github.com/bytedance/sonic/loader v0.1.1 // indirect
33-
github.com/cespare/xxhash/v2 v2.2.0 // indirect
34-
github.com/cloudwego/base64x v0.1.4 // indirect
35-
github.com/cloudwego/iasm v0.2.0 // indirect
36-
github.com/cpuguy83/go-md2man/v2 v2.0.4 // indirect
32+
github.com/agnivade/levenshtein v1.2.1 // indirect
33+
github.com/bytedance/sonic v1.12.8 // indirect
34+
github.com/bytedance/sonic/loader v0.2.3 // indirect
35+
github.com/cespare/xxhash/v2 v2.3.0 // indirect
36+
github.com/cloudwego/base64x v0.1.5 // indirect
37+
github.com/cpuguy83/go-md2man/v2 v2.0.6 // indirect
3738
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect
3839
github.com/dgryski/go-rendezvous v0.0.0-20200823014737-9f7001d12a5f // indirect
39-
github.com/fsnotify/fsnotify v1.7.0 // indirect
40-
github.com/gabriel-vasile/mimetype v1.4.3 // indirect
41-
github.com/gin-contrib/sse v0.1.0 // indirect
42-
github.com/go-openapi/jsonpointer v0.19.6 // indirect
43-
github.com/go-openapi/jsonreference v0.20.2 // indirect
44-
github.com/go-openapi/spec v0.20.9 // indirect
45-
github.com/go-openapi/swag v0.22.4 // indirect
40+
github.com/fsnotify/fsnotify v1.8.0 // indirect
41+
github.com/gabriel-vasile/mimetype v1.4.8 // indirect
42+
github.com/gin-contrib/sse v1.0.0 // indirect
43+
github.com/go-openapi/jsonpointer v0.21.0 // indirect
44+
github.com/go-openapi/jsonreference v0.21.0 // indirect
45+
github.com/go-openapi/spec v0.21.0 // indirect
46+
github.com/go-openapi/swag v0.23.0 // indirect
4647
github.com/go-playground/locales v0.14.1 // indirect
4748
github.com/go-playground/universal-translator v0.18.1 // indirect
48-
github.com/goccy/go-json v0.10.2 // indirect
49+
github.com/go-viper/mapstructure/v2 v2.2.1 // indirect
50+
github.com/goccy/go-json v0.10.5 // indirect
4951
github.com/golang/snappy v0.0.4 // indirect
5052
github.com/google/uuid v1.6.0 // indirect
5153
github.com/gorilla/websocket v1.5.0 // indirect
@@ -54,38 +56,38 @@ require (
5456
github.com/hashicorp/hcl v1.0.0 // indirect
5557
github.com/josharian/intern v1.0.0 // indirect
5658
github.com/json-iterator/go v1.1.12 // indirect
57-
github.com/klauspost/cpuid/v2 v2.2.7 // indirect
59+
github.com/klauspost/cpuid/v2 v2.2.9 // indirect
5860
github.com/leodido/go-urn v1.4.0 // indirect
59-
github.com/magiconair/properties v1.8.7 // indirect
60-
github.com/mailru/easyjson v0.7.7 // indirect
61+
github.com/magiconair/properties v1.8.9 // indirect
62+
github.com/mailru/easyjson v0.9.0 // indirect
6163
github.com/mattn/go-isatty v0.0.20 // indirect
6264
github.com/mitchellh/mapstructure v1.5.0 // indirect
6365
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
6466
github.com/modern-go/reflect2 v1.0.2 // indirect
65-
github.com/pelletier/go-toml/v2 v2.2.2 // indirect
67+
github.com/pelletier/go-toml/v2 v2.2.3 // indirect
6668
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect
6769
github.com/russross/blackfriday/v2 v2.1.0 // indirect
68-
github.com/sagikazarmark/locafero v0.4.0 // indirect
70+
github.com/sagikazarmark/locafero v0.7.0 // indirect
6971
github.com/sagikazarmark/slog-shim v0.1.0 // indirect
7072
github.com/sosodev/duration v1.3.1 // indirect
7173
github.com/sourcegraph/conc v0.3.0 // indirect
72-
github.com/spf13/cast v1.6.0 // indirect
73-
github.com/spf13/pflag v1.0.5 // indirect
74+
github.com/spf13/cast v1.7.1 // indirect
75+
github.com/spf13/pflag v1.0.6 // indirect
7476
github.com/subosito/gotenv v1.6.0 // indirect
7577
github.com/twitchyliquid64/golang-asm v0.15.1 // indirect
7678
github.com/ugorji/go/codec v1.2.12 // indirect
77-
github.com/urfave/cli/v2 v2.27.2 // indirect
78-
github.com/xrash/smetrics v0.0.0-20240312152122-5f08fbb34913 // indirect
79-
go.uber.org/multierr v1.10.0 // indirect
80-
golang.org/x/arch v0.8.0 // indirect
81-
golang.org/x/exp v0.0.0-20230905200255-921286631fa9 // indirect
82-
golang.org/x/mod v0.18.0 // indirect
83-
golang.org/x/net v0.26.0 // indirect
84-
golang.org/x/sync v0.8.0 // indirect
85-
golang.org/x/sys v0.23.0 // indirect
86-
golang.org/x/text v0.17.0 // indirect
87-
golang.org/x/tools v0.22.0 // indirect
88-
google.golang.org/protobuf v1.34.1 // indirect
79+
github.com/urfave/cli/v2 v2.27.5 // indirect
80+
github.com/xrash/smetrics v0.0.0-20240521201337-686a1a2994c1 // indirect
81+
go.uber.org/multierr v1.11.0 // indirect
82+
golang.org/x/arch v0.13.0 // indirect
83+
golang.org/x/exp v0.0.0-20250128182459-e0ece0dbea4c // indirect
84+
golang.org/x/mod v0.22.0 // indirect
85+
golang.org/x/net v0.34.0 // indirect
86+
golang.org/x/sync v0.10.0 // indirect
87+
golang.org/x/sys v0.29.0 // indirect
88+
golang.org/x/text v0.21.0 // indirect
89+
golang.org/x/tools v0.29.0 // indirect
90+
google.golang.org/protobuf v1.36.4 // indirect
8991
gopkg.in/inf.v0 v0.9.1 // indirect
9092
gopkg.in/ini.v1 v1.67.0 // indirect
9193
)

0 commit comments

Comments
 (0)