├── .circleci └── config.yml ├── .env ├── .gitignore ├── LICENSE ├── Makefile ├── README.md ├── api └── GopherApi.postman_collection.json ├── cmd ├── gopherapi │ └── main.go └── sample-data │ └── data.go ├── go.mod ├── go.sum └── pkg ├── adding └── service.go ├── fetching └── service.go ├── gopher.go ├── log ├── logger.go ├── logrus │ └── logrus.go └── nooplogger.go ├── modifying └── service.go ├── removing └── service.go ├── server ├── context.go ├── middleware.go ├── server.go └── server_test.go ├── storage ├── cockroach │ ├── conn.go │ └── repository.go ├── inmem │ └── repository.go ├── mysql │ ├── conn.go │ ├── repository.go │ └── repository_test.go └── redis │ ├── conn.go │ ├── example_test.go │ ├── repository.go │ └── repository_test.go └── tracer └── tracer.go /.circleci/config.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/friendsofgo/gopherapi/HEAD/.circleci/config.yml -------------------------------------------------------------------------------- /.env: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/friendsofgo/gopherapi/HEAD/.env -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | bin 2 | .vscode 3 | .idea -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/friendsofgo/gopherapi/HEAD/LICENSE -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/friendsofgo/gopherapi/HEAD/Makefile -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/friendsofgo/gopherapi/HEAD/README.md -------------------------------------------------------------------------------- /api/GopherApi.postman_collection.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/friendsofgo/gopherapi/HEAD/api/GopherApi.postman_collection.json -------------------------------------------------------------------------------- /cmd/gopherapi/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/friendsofgo/gopherapi/HEAD/cmd/gopherapi/main.go -------------------------------------------------------------------------------- /cmd/sample-data/data.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/friendsofgo/gopherapi/HEAD/cmd/sample-data/data.go -------------------------------------------------------------------------------- /go.mod: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/friendsofgo/gopherapi/HEAD/go.mod -------------------------------------------------------------------------------- /go.sum: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/friendsofgo/gopherapi/HEAD/go.sum -------------------------------------------------------------------------------- /pkg/adding/service.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/friendsofgo/gopherapi/HEAD/pkg/adding/service.go -------------------------------------------------------------------------------- /pkg/fetching/service.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/friendsofgo/gopherapi/HEAD/pkg/fetching/service.go -------------------------------------------------------------------------------- /pkg/gopher.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/friendsofgo/gopherapi/HEAD/pkg/gopher.go -------------------------------------------------------------------------------- /pkg/log/logger.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/friendsofgo/gopherapi/HEAD/pkg/log/logger.go -------------------------------------------------------------------------------- /pkg/log/logrus/logrus.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/friendsofgo/gopherapi/HEAD/pkg/log/logrus/logrus.go -------------------------------------------------------------------------------- /pkg/log/nooplogger.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/friendsofgo/gopherapi/HEAD/pkg/log/nooplogger.go -------------------------------------------------------------------------------- /pkg/modifying/service.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/friendsofgo/gopherapi/HEAD/pkg/modifying/service.go -------------------------------------------------------------------------------- /pkg/removing/service.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/friendsofgo/gopherapi/HEAD/pkg/removing/service.go -------------------------------------------------------------------------------- /pkg/server/context.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/friendsofgo/gopherapi/HEAD/pkg/server/context.go -------------------------------------------------------------------------------- /pkg/server/middleware.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/friendsofgo/gopherapi/HEAD/pkg/server/middleware.go -------------------------------------------------------------------------------- /pkg/server/server.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/friendsofgo/gopherapi/HEAD/pkg/server/server.go -------------------------------------------------------------------------------- /pkg/server/server_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/friendsofgo/gopherapi/HEAD/pkg/server/server_test.go -------------------------------------------------------------------------------- /pkg/storage/cockroach/conn.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/friendsofgo/gopherapi/HEAD/pkg/storage/cockroach/conn.go -------------------------------------------------------------------------------- /pkg/storage/cockroach/repository.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/friendsofgo/gopherapi/HEAD/pkg/storage/cockroach/repository.go -------------------------------------------------------------------------------- /pkg/storage/inmem/repository.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/friendsofgo/gopherapi/HEAD/pkg/storage/inmem/repository.go -------------------------------------------------------------------------------- /pkg/storage/mysql/conn.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/friendsofgo/gopherapi/HEAD/pkg/storage/mysql/conn.go -------------------------------------------------------------------------------- /pkg/storage/mysql/repository.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/friendsofgo/gopherapi/HEAD/pkg/storage/mysql/repository.go -------------------------------------------------------------------------------- /pkg/storage/mysql/repository_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/friendsofgo/gopherapi/HEAD/pkg/storage/mysql/repository_test.go -------------------------------------------------------------------------------- /pkg/storage/redis/conn.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/friendsofgo/gopherapi/HEAD/pkg/storage/redis/conn.go -------------------------------------------------------------------------------- /pkg/storage/redis/example_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/friendsofgo/gopherapi/HEAD/pkg/storage/redis/example_test.go -------------------------------------------------------------------------------- /pkg/storage/redis/repository.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/friendsofgo/gopherapi/HEAD/pkg/storage/redis/repository.go -------------------------------------------------------------------------------- /pkg/storage/redis/repository_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/friendsofgo/gopherapi/HEAD/pkg/storage/redis/repository_test.go -------------------------------------------------------------------------------- /pkg/tracer/tracer.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/friendsofgo/gopherapi/HEAD/pkg/tracer/tracer.go --------------------------------------------------------------------------------