├── .github ├── FUNDING.yml └── workflows │ └── codeql-analysis.yml ├── .gitignore ├── Makefile ├── README.md ├── SECURITY.md ├── api └── docs │ ├── docs.go │ ├── swagger.json │ └── swagger.yaml ├── app ├── cmd │ ├── http.go │ └── root.go └── main.go ├── config └── config.toml ├── database └── migrations │ ├── 1_create_article.down.sql │ ├── 1_create_article.up.sql │ ├── 2_create_user.down.sql │ └── 2_create_user.up.sql ├── go.mod ├── go.sum ├── internal ├── controller │ ├── controller.address.go │ ├── controller.article.go │ ├── controller.article_test.go │ ├── controller.health.go │ ├── controller.user.go │ └── module.go ├── http │ ├── middleware.go │ ├── middleware_test.go │ └── server.go ├── library │ ├── config.go │ └── db │ │ └── db.go ├── repository │ ├── module.go │ ├── mysql │ │ ├── article.go │ │ └── user.go │ └── postgres │ │ └── address.go └── service │ ├── module.go │ ├── service.address.go │ ├── service.article.go │ ├── service.article_test.go │ ├── service.health.go │ └── service.user.go ├── mocks ├── ArticleRepository.go ├── ArticleService.go ├── DomainService.go ├── GodaddyOutbound.go ├── UserRepository.go └── UserService.go ├── models ├── address.go ├── article.go ├── base_response.go ├── config.go ├── domain.go └── user.go └── utility ├── circuitbreaker.go ├── errors.go └── timeout.go /.github/FUNDING.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kecci/goscription/HEAD/.github/FUNDING.yml -------------------------------------------------------------------------------- /.github/workflows/codeql-analysis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kecci/goscription/HEAD/.github/workflows/codeql-analysis.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kecci/goscription/HEAD/.gitignore -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kecci/goscription/HEAD/Makefile -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kecci/goscription/HEAD/README.md -------------------------------------------------------------------------------- /SECURITY.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kecci/goscription/HEAD/SECURITY.md -------------------------------------------------------------------------------- /api/docs/docs.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kecci/goscription/HEAD/api/docs/docs.go -------------------------------------------------------------------------------- /api/docs/swagger.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kecci/goscription/HEAD/api/docs/swagger.json -------------------------------------------------------------------------------- /api/docs/swagger.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kecci/goscription/HEAD/api/docs/swagger.yaml -------------------------------------------------------------------------------- /app/cmd/http.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kecci/goscription/HEAD/app/cmd/http.go -------------------------------------------------------------------------------- /app/cmd/root.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kecci/goscription/HEAD/app/cmd/root.go -------------------------------------------------------------------------------- /app/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kecci/goscription/HEAD/app/main.go -------------------------------------------------------------------------------- /config/config.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kecci/goscription/HEAD/config/config.toml -------------------------------------------------------------------------------- /database/migrations/1_create_article.down.sql: -------------------------------------------------------------------------------- 1 | DROP TABLE IF EXISTS `article`; -------------------------------------------------------------------------------- /database/migrations/1_create_article.up.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kecci/goscription/HEAD/database/migrations/1_create_article.up.sql -------------------------------------------------------------------------------- /database/migrations/2_create_user.down.sql: -------------------------------------------------------------------------------- 1 | DROP TABLE IF EXISTS `user`; -------------------------------------------------------------------------------- /database/migrations/2_create_user.up.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kecci/goscription/HEAD/database/migrations/2_create_user.up.sql -------------------------------------------------------------------------------- /go.mod: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kecci/goscription/HEAD/go.mod -------------------------------------------------------------------------------- /go.sum: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kecci/goscription/HEAD/go.sum -------------------------------------------------------------------------------- /internal/controller/controller.address.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kecci/goscription/HEAD/internal/controller/controller.address.go -------------------------------------------------------------------------------- /internal/controller/controller.article.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kecci/goscription/HEAD/internal/controller/controller.article.go -------------------------------------------------------------------------------- /internal/controller/controller.article_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kecci/goscription/HEAD/internal/controller/controller.article_test.go -------------------------------------------------------------------------------- /internal/controller/controller.health.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kecci/goscription/HEAD/internal/controller/controller.health.go -------------------------------------------------------------------------------- /internal/controller/controller.user.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kecci/goscription/HEAD/internal/controller/controller.user.go -------------------------------------------------------------------------------- /internal/controller/module.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kecci/goscription/HEAD/internal/controller/module.go -------------------------------------------------------------------------------- /internal/http/middleware.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kecci/goscription/HEAD/internal/http/middleware.go -------------------------------------------------------------------------------- /internal/http/middleware_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kecci/goscription/HEAD/internal/http/middleware_test.go -------------------------------------------------------------------------------- /internal/http/server.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kecci/goscription/HEAD/internal/http/server.go -------------------------------------------------------------------------------- /internal/library/config.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kecci/goscription/HEAD/internal/library/config.go -------------------------------------------------------------------------------- /internal/library/db/db.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kecci/goscription/HEAD/internal/library/db/db.go -------------------------------------------------------------------------------- /internal/repository/module.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kecci/goscription/HEAD/internal/repository/module.go -------------------------------------------------------------------------------- /internal/repository/mysql/article.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kecci/goscription/HEAD/internal/repository/mysql/article.go -------------------------------------------------------------------------------- /internal/repository/mysql/user.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kecci/goscription/HEAD/internal/repository/mysql/user.go -------------------------------------------------------------------------------- /internal/repository/postgres/address.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kecci/goscription/HEAD/internal/repository/postgres/address.go -------------------------------------------------------------------------------- /internal/service/module.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kecci/goscription/HEAD/internal/service/module.go -------------------------------------------------------------------------------- /internal/service/service.address.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kecci/goscription/HEAD/internal/service/service.address.go -------------------------------------------------------------------------------- /internal/service/service.article.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kecci/goscription/HEAD/internal/service/service.article.go -------------------------------------------------------------------------------- /internal/service/service.article_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kecci/goscription/HEAD/internal/service/service.article_test.go -------------------------------------------------------------------------------- /internal/service/service.health.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kecci/goscription/HEAD/internal/service/service.health.go -------------------------------------------------------------------------------- /internal/service/service.user.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kecci/goscription/HEAD/internal/service/service.user.go -------------------------------------------------------------------------------- /mocks/ArticleRepository.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kecci/goscription/HEAD/mocks/ArticleRepository.go -------------------------------------------------------------------------------- /mocks/ArticleService.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kecci/goscription/HEAD/mocks/ArticleService.go -------------------------------------------------------------------------------- /mocks/DomainService.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kecci/goscription/HEAD/mocks/DomainService.go -------------------------------------------------------------------------------- /mocks/GodaddyOutbound.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kecci/goscription/HEAD/mocks/GodaddyOutbound.go -------------------------------------------------------------------------------- /mocks/UserRepository.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kecci/goscription/HEAD/mocks/UserRepository.go -------------------------------------------------------------------------------- /mocks/UserService.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kecci/goscription/HEAD/mocks/UserService.go -------------------------------------------------------------------------------- /models/address.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kecci/goscription/HEAD/models/address.go -------------------------------------------------------------------------------- /models/article.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kecci/goscription/HEAD/models/article.go -------------------------------------------------------------------------------- /models/base_response.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kecci/goscription/HEAD/models/base_response.go -------------------------------------------------------------------------------- /models/config.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kecci/goscription/HEAD/models/config.go -------------------------------------------------------------------------------- /models/domain.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kecci/goscription/HEAD/models/domain.go -------------------------------------------------------------------------------- /models/user.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kecci/goscription/HEAD/models/user.go -------------------------------------------------------------------------------- /utility/circuitbreaker.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kecci/goscription/HEAD/utility/circuitbreaker.go -------------------------------------------------------------------------------- /utility/errors.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kecci/goscription/HEAD/utility/errors.go -------------------------------------------------------------------------------- /utility/timeout.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kecci/goscription/HEAD/utility/timeout.go --------------------------------------------------------------------------------