diff options
author | ᴜɴᴋɴᴡᴏɴ <u@gogs.io> | 2020-04-04 21:14:15 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-04 21:14:15 +0800 |
commit | 34145c990d4fd9f278f29cdf9c61378a75e9b934 (patch) | |
tree | 7b151bbd5aef9e487759953e3a775a82244d268d /go.mod | |
parent | 2bd9d0b9c8238ded727cd98a3ace20b53c10a44f (diff) |
lfs: implement HTTP routes (#6035)
* Bootstrap with GORM
* Fix lint error
* Set conn max lifetime to one minute
* Fallback to use gorm v1
* Define HTTP routes
* Finish authentication
* Save token updated
* Add docstring
* Finish authorization
* serveBatch rundown
* Define types in lfsutil
* Finish Batch
* authutil
* Finish basic
* Formalize response error
* Fix lint errors
* authutil: add tests
* dbutil: add tests
* lfsutil: add tests
* strutil: add tests
* Formalize 401 response
Diffstat (limited to 'go.mod')
-rw-r--r-- | go.mod | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -4,7 +4,7 @@ go 1.13 require ( github.com/bgentry/speakeasy v0.1.0 // indirect - github.com/denisenkom/go-mssqldb v0.0.0-20191001013358-cfbb681360f0 + github.com/denisenkom/go-mssqldb v0.0.0-20200206145737-bbfc9a55622e github.com/editorconfig/editorconfig-core-go/v2 v2.3.1 github.com/fatih/color v1.9.0 // indirect github.com/go-macaron/binding v1.1.0 @@ -13,6 +13,7 @@ require ( github.com/go-macaron/csrf v0.0.0-20190812063352-946f6d303a4c github.com/go-macaron/gzip v0.0.0-20160222043647-cad1c6580a07 github.com/go-macaron/i18n v0.5.0 + github.com/go-macaron/inject v0.0.0-20160627170012-d8a0b8677191 github.com/go-macaron/session v0.0.0-20190805070824-1a3cdc6f5659 github.com/go-macaron/toolbox v0.0.0-20190813233741-94defb8383c6 github.com/go-sql-driver/mysql v1.5.0 @@ -27,13 +28,14 @@ require ( github.com/google/go-querystring v1.0.0 // indirect github.com/issue9/identicon v1.0.1 github.com/jaytaylor/html2text v0.0.0-20190408195923-01ec452cbe43 + github.com/jinzhu/gorm v1.9.12 github.com/json-iterator/go v1.1.9 github.com/klauspost/compress v1.8.6 // indirect github.com/klauspost/cpuid v1.2.1 // indirect github.com/lib/pq v1.3.0 github.com/mattn/go-isatty v0.0.12 // indirect github.com/mattn/go-runewidth v0.0.4 // indirect - github.com/mattn/go-sqlite3 v1.13.0 + github.com/mattn/go-sqlite3 v2.0.3+incompatible github.com/mcuadros/go-version v0.0.0-20190830083331-035f6764e8d2 github.com/microcosm-cc/bluemonday v1.0.2 github.com/msteinert/pam v0.0.0-20190215180659-f29b9f28d6f9 |