Ivan R.
5aa2cee5b1
chore: migrate to database/sql
...
Since I started simplifying, I decided to abandon ORM.
I won’t say that this makes much sense, everything works more or less as before.
Except that the size of the program has decreased slightly again, by about a megabyte.
2024-03-26 00:40:52 +05:00
dependabot[bot]
5ae3bdd359
Bump the go-deps group with 4 updates
...
Bumps the go-deps group with 4 updates: [github.com/golang-jwt/jwt/v5](https://github.com/golang-jwt/jwt ), [golang.org/x/crypto](https://github.com/golang/crypto ), [gorm.io/driver/sqlite](https://github.com/go-gorm/sqlite ) and [gorm.io/gorm](https://github.com/go-gorm/gorm ).
Updates `github.com/golang-jwt/jwt/v5` from 5.2.0 to 5.2.1
- [Release notes](https://github.com/golang-jwt/jwt/releases )
- [Changelog](https://github.com/golang-jwt/jwt/blob/main/VERSION_HISTORY.md )
- [Commits](https://github.com/golang-jwt/jwt/compare/v5.2.0...v5.2.1 )
Updates `golang.org/x/crypto` from 0.17.0 to 0.21.0
- [Commits](https://github.com/golang/crypto/compare/v0.17.0...v0.21.0 )
Updates `gorm.io/driver/sqlite` from 1.5.4 to 1.5.5
- [Commits](https://github.com/go-gorm/sqlite/compare/v1.5.4...v1.5.5 )
Updates `gorm.io/gorm` from 1.25.5 to 1.25.7-0.20240204074919-46816ad31dde
- [Release notes](https://github.com/go-gorm/gorm/releases )
- [Commits](https://github.com/go-gorm/gorm/commits )
---
updated-dependencies:
- dependency-name: github.com/golang-jwt/jwt/v5
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: go-deps
- dependency-name: golang.org/x/crypto
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: go-deps
- dependency-name: gorm.io/driver/sqlite
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: go-deps
- dependency-name: gorm.io/gorm
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: go-deps
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-03-25 15:58:10 +05:00
Ivan R.
6d25c4e8af
feat!: migrate to net/http
...
With the release of Go 1.22, the standard library now has
all the necessary functions that allow us to abandon Gin.
I hope this rewrite will lower the entry barrier for new developers.
As a nice bonus, the size of the program has decreased from 20 to 15.4 MB.
To solve issue #81 , request logging has been improved.
Now all errors are displayed in the logs.
2024-03-25 15:52:18 +05:00
dependabot[bot]
5738476c6b
Bump github.com/golang-jwt/jwt/v5 from 5.0.0 to 5.2.0
...
Bumps [github.com/golang-jwt/jwt/v5](https://github.com/golang-jwt/jwt ) from 5.0.0 to 5.2.0.
- [Release notes](https://github.com/golang-jwt/jwt/releases )
- [Changelog](https://github.com/golang-jwt/jwt/blob/main/VERSION_HISTORY.md )
- [Commits](https://github.com/golang-jwt/jwt/compare/v5.0.0...v5.2.0 )
---
updated-dependencies:
- dependency-name: github.com/golang-jwt/jwt/v5
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-01-02 21:21:52 +05:00
dependabot[bot]
2f6a548d94
Bump golang.org/x/crypto from 0.14.0 to 0.17.0
...
Bumps [golang.org/x/crypto](https://github.com/golang/crypto ) from 0.14.0 to 0.17.0.
- [Commits](https://github.com/golang/crypto/compare/v0.14.0...v0.17.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/crypto
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-01-02 21:21:30 +05:00
dependabot[bot]
f2ca3867dd
Bump golang.org/x/crypto from 0.14.0 to 0.16.0
...
Bumps [golang.org/x/crypto](https://github.com/golang/crypto ) from 0.14.0 to 0.16.0.
- [Commits](https://github.com/golang/crypto/compare/v0.14.0...v0.16.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/crypto
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-01-02 21:20:45 +05:00
dependabot[bot]
de70b9d310
Bump gorm.io/driver/sqlite from 1.5.3 to 1.5.4
...
Bumps [gorm.io/driver/sqlite](https://github.com/go-gorm/sqlite ) from 1.5.3 to 1.5.4.
- [Commits](https://github.com/go-gorm/sqlite/compare/v1.5.3...v1.5.4 )
---
updated-dependencies:
- dependency-name: gorm.io/driver/sqlite
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-11-01 20:33:34 +05:00
dependabot[bot]
3cdde7cc27
Bump golang.org/x/net from 0.10.0 to 0.17.0
...
Bumps [golang.org/x/net](https://github.com/golang/net ) from 0.10.0 to 0.17.0.
- [Commits](https://github.com/golang/net/compare/v0.10.0...v0.17.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/net
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-11-01 20:32:38 +05:00
dependabot[bot]
5a77ab921e
Bump gorm.io/gorm from 1.25.4 to 1.25.5
...
Bumps [gorm.io/gorm](https://github.com/go-gorm/gorm ) from 1.25.4 to 1.25.5.
- [Release notes](https://github.com/go-gorm/gorm/releases )
- [Commits](https://github.com/go-gorm/gorm/compare/v1.25.4...v1.25.5 )
---
updated-dependencies:
- dependency-name: gorm.io/gorm
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-11-01 20:32:27 +05:00
dependabot[bot]
7a803688de
Bump golang.org/x/crypto from 0.11.0 to 0.12.0
...
Bumps [golang.org/x/crypto](https://github.com/golang/crypto ) from 0.11.0 to 0.12.0.
- [Commits](https://github.com/golang/crypto/compare/v0.11.0...v0.12.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/crypto
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-09-03 15:18:42 +05:00
dependabot[bot]
05a7a657dc
Bump gorm.io/gorm from 1.25.2 to 1.25.4
...
Bumps [gorm.io/gorm](https://github.com/go-gorm/gorm ) from 1.25.2 to 1.25.4.
- [Release notes](https://github.com/go-gorm/gorm/releases )
- [Commits](https://github.com/go-gorm/gorm/compare/v1.25.2...v1.25.4 )
---
updated-dependencies:
- dependency-name: gorm.io/gorm
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-09-03 15:18:18 +05:00
dependabot[bot]
df0dfc74ce
Bump gorm.io/driver/sqlite from 1.5.2 to 1.5.3
...
Bumps [gorm.io/driver/sqlite](https://github.com/go-gorm/sqlite ) from 1.5.2 to 1.5.3.
- [Commits](https://github.com/go-gorm/sqlite/compare/v1.5.2...v1.5.3 )
---
updated-dependencies:
- dependency-name: gorm.io/driver/sqlite
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-09-03 15:17:05 +05:00
Ivan R.
2c08171c7a
Start using JWT tokens
...
I thought this was a good idea.
Pros: fewer database calls.
Cons: there is no way to revoke the token (except for changing the secret key).
I rewrote the authorization as a middleware. Request handlers no longer need to validate the user.
2023-07-22 13:42:43 +05:00
Ivan R.
7f42a90be6
Add simple config module
2023-07-22 11:33:14 +05:00
dependabot[bot]
5bcb0ac37b
Bump gorm.io/driver/sqlite from 1.5.0 to 1.5.2
...
Bumps [gorm.io/driver/sqlite](https://github.com/go-gorm/sqlite ) from 1.5.0 to 1.5.2.
- [Commits](https://github.com/go-gorm/sqlite/compare/v1.5.0...v1.5.2 )
---
updated-dependencies:
- dependency-name: gorm.io/driver/sqlite
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-07-21 00:50:37 +05:00
dependabot[bot]
7600406356
Bump github.com/gin-gonic/gin from 1.9.0 to 1.9.1
...
Bumps [github.com/gin-gonic/gin](https://github.com/gin-gonic/gin ) from 1.9.0 to 1.9.1.
- [Release notes](https://github.com/gin-gonic/gin/releases )
- [Changelog](https://github.com/gin-gonic/gin/blob/master/CHANGELOG.md )
- [Commits](https://github.com/gin-gonic/gin/compare/v1.9.0...v1.9.1 )
---
updated-dependencies:
- dependency-name: github.com/gin-gonic/gin
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-07-21 00:49:40 +05:00
dependabot[bot]
9b00dfdbf8
Bump gorm.io/gorm from 1.25.0 to 1.25.2
...
Bumps [gorm.io/gorm](https://github.com/go-gorm/gorm ) from 1.25.0 to 1.25.2.
- [Release notes](https://github.com/go-gorm/gorm/releases )
- [Commits](https://github.com/go-gorm/gorm/compare/v1.25.0...v1.25.2 )
---
updated-dependencies:
- dependency-name: gorm.io/gorm
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-07-21 00:47:28 +05:00
dependabot[bot]
b3e570f814
Bump golang.org/x/crypto from 0.5.0 to 0.11.0
...
Bumps [golang.org/x/crypto](https://github.com/golang/crypto ) from 0.5.0 to 0.11.0.
- [Commits](https://github.com/golang/crypto/compare/v0.5.0...v0.11.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/crypto
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-07-21 00:47:17 +05:00
dependabot[bot]
595266f8bb
Bump gorm.io/gorm from 1.24.6 to 1.25.0
...
Bumps [gorm.io/gorm](https://github.com/go-gorm/gorm ) from 1.24.6 to 1.25.0.
- [Release notes](https://github.com/go-gorm/gorm/releases )
- [Commits](https://github.com/go-gorm/gorm/compare/v1.24.6...v1.25.0 )
---
updated-dependencies:
- dependency-name: gorm.io/gorm
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-04-21 22:37:09 +05:00
dependabot[bot]
bcf4248742
Bump gorm.io/driver/sqlite from 1.4.4 to 1.5.0
...
Bumps [gorm.io/driver/sqlite](https://github.com/go-gorm/sqlite ) from 1.4.4 to 1.5.0.
- [Release notes](https://github.com/go-gorm/sqlite/releases )
- [Commits](https://github.com/go-gorm/sqlite/compare/v1.4.4...v1.5.0 )
---
updated-dependencies:
- dependency-name: gorm.io/driver/sqlite
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-04-21 22:36:26 +05:00
Ivan R.
16cd7aa635
Initial commit
2023-04-06 10:36:11 +05:00