go_rest_api

所属分类:MongoDB
开发工具:GO
文件大小:13KB
下载次数:0
上传日期:2018-06-09 22:06:20
上 传 者sh-1993
说明:  使用mongoDb转到web服务器
(Go web server with mongoDb)

文件列表:
cmd (0, 2018-06-10)
cmd\app (0, 2018-06-10)
cmd\app\app.go (613, 2018-06-10)
cmd\app\main.go (67, 2018-06-10)
pkg (0, 2018-06-10)
pkg\config.go (373, 2018-06-10)
pkg\config (0, 2018-06-10)
pkg\config\config.go (670, 2018-06-10)
pkg\credentials.go (128, 2018-06-10)
pkg\crypto.go (124, 2018-06-10)
pkg\crypto (0, 2018-06-10)
pkg\crypto\crypto.go (912, 2018-06-10)
pkg\crypto\crypto_test.go (1693, 2018-06-10)
pkg\mock (0, 2018-06-10)
pkg\mock\user_service_mock.go (727, 2018-06-10)
pkg\mongo (0, 2018-06-10)
pkg\mongo\mongo_test.go (1290, 2018-06-10)
pkg\mongo\session.go (669, 2018-06-10)
pkg\mongo\user_model.go (1225, 2018-06-10)
pkg\mongo\user_service.go (1208, 2018-06-10)
pkg\server (0, 2018-06-10)
pkg\server\auth.go (1922, 2018-06-10)
pkg\server\response.go (668, 2018-06-10)
pkg\server\server.go (829, 2018-06-10)
pkg\server\user_router.go (2787, 2018-06-10)
pkg\server\user_router_test.go (9097, 2018-06-10)
pkg\user.go (311, 2018-06-10)

# go_rest_api - https://hackernoon.com/make-yourself-a-go-web-server-with-mongodb-go-on-go-on-go-on-48f394f24e Go web server with mongoDb, gorilla toolkit, and jwt authentication This project follows the package layout recommended by Ben Johnson in his Medium article - Standard package layout https://medium.com/@benbjohnson/standard-package-layout-7cdbc8391fc1 Structure ~~~ go_rest_api /cmd /app -app.go -main.go /pkg /mongo -session.go -user_service.go -user_model.go /server -server.go -user_router.go -response.go -auth.go /mock -user_service_mock.go -user.go -credentials.go ~~~ Dependancies - go get gopkg.in/mgo.v2 - go get github.com/gorilla/mux - go get github.com/gorilla/handlers - go get golang.org/x/crypto/bcrypt - go get github.com/google/uuid References - https://medium.com/@benbjohnson/standard-package-layout-7cdbc8391fc1#.sdcvblyts - https://semaphoreci.com/community/tutorials/building-and-testing-a-rest-api-in-go-with-gorilla-mux-and-postgresql - https://dinosaurscode.xyz/go/2016/06/17/golang-jwt-authentication/ - https://medium.com/@matryer/context-keys-in-go-5312346a868d#.hb4spbx1a

近期下载者

相关文件


收藏者