├── .dockerignore ├── .github └── workflows │ ├── build.yaml │ └── commit.yaml ├── .gitignore ├── .gitleaksignore ├── .golangci.yaml ├── .releaserc.yaml ├── .sqruff ├── Dockerfile ├── README.md ├── Taskfile.yaml ├── adapter ├── casbin │ ├── authzcasbin_test.go │ ├── casbin.go │ ├── model.conf │ ├── module.go │ ├── permission_manager.go │ ├── permission_manager_test.go │ ├── role_manager.go │ └── role_manager_test.go ├── casdoor │ ├── config.go │ ├── module.go │ ├── provider_test.go │ ├── token_provider.go │ └── user_provider.go ├── featureflags │ ├── config.go │ ├── featureflags.go │ └── http.go ├── health │ ├── check.go │ ├── health_http │ │ ├── controller.go │ │ └── controller_test.go │ ├── health_module │ │ └── module.go │ ├── service.go │ ├── status.go │ └── unhealthy.go ├── http │ ├── config.go │ ├── fiber.go │ ├── fiber_test.go │ ├── nop_probe.go │ └── prom_probe.go ├── logger │ ├── config.go │ ├── logger.go │ └── nop_logger.go ├── metrics │ ├── config.go │ ├── metrics.go │ └── metrics_test.go ├── mongo │ ├── config.go │ ├── health.go │ └── mongo.go ├── postgres │ ├── config.go │ ├── health.go │ ├── logger.go │ └── postgres.go ├── queue │ ├── client.go │ ├── logger.go │ ├── queue.go │ └── server.go ├── redis │ ├── config.go │ ├── health.go │ └── redis.go ├── time │ └── time_clock.go ├── tracing │ ├── config.go │ └── tracing.go ├── uuid │ ├── generator.go │ ├── generator_test.go │ └── uuid.go ├── validation │ └── validation.go └── watermill │ ├── command.go │ ├── event.go │ ├── logger.go │ ├── marshaler.go │ └── module.go ├── authn ├── authn_http │ ├── controller.go │ ├── controller_test.go │ └── middleware.go ├── authn_module │ └── module.go ├── provider.go └── service.go ├── authz ├── authz.go ├── authz_http │ ├── middleware.go │ └── module.go ├── policy.go └── request.go ├── cmd ├── app │ └── app.go ├── migrate │ ├── migrate.go │ └── migrations │ │ ├── 20230521004624_enable_uuid_extension.sql │ │ └── 20230521004811_create_users_table.sql └── worker │ └── worker.go ├── compose.monitoring.yaml ├── compose.yaml ├── config ├── config.go └── config.yaml ├── etc ├── casdoor.conf ├── casdoor_init_data.json ├── grafana.yaml └── prometheus.yaml ├── go.mod ├── go.sum ├── internal ├── appcontext │ └── appcontext.go ├── clock │ └── clock.go ├── event │ └── event.go ├── id │ └── generator.go ├── mill │ └── mill.go ├── ref │ ├── ref.go │ └── ref_test.go └── util │ └── function_name.go ├── kv ├── error.go ├── kv_adapter │ ├── redis_store.go │ └── redis_store_test.go ├── kv_http │ ├── controller.go │ └── controller_test.go ├── kv_module │ └── module.go └── store.go ├── mise.toml ├── test ├── authn.go ├── available_port.go ├── driver │ ├── auth.go │ ├── driver.go │ ├── health.go │ ├── kv.go │ ├── request.go │ └── user.go ├── fixed_clock.go ├── harness │ ├── harness.go │ └── options.go ├── k6 │ └── load-test.js ├── matchers │ └── must.go ├── queue.go └── req │ ├── headers.go │ └── req.go └── user ├── emitter.go ├── error.go ├── event.go ├── permissions.go ├── repository.go ├── service.go ├── service_test.go ├── user.go ├── user_adapter ├── mapper.go ├── mongo_repository.go ├── postgres_repository.go └── prom_probe.go ├── user_http ├── controller.go ├── controller_test.go └── dto.go ├── user_module └── module.go └── user_queue ├── greeter_queue.go ├── greeter_worker.go ├── permissions_cleanup_queue.go ├── permissions_cleanup_worker.go └── tasks.go /.dockerignore: -------------------------------------------------------------------------------- 1 | .git 2 | Dockerfile 3 | -------------------------------------------------------------------------------- /.github/workflows/build.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joaofnds/go-template/HEAD/.github/workflows/build.yaml -------------------------------------------------------------------------------- /.github/workflows/commit.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joaofnds/go-template/HEAD/.github/workflows/commit.yaml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .task 2 | /bin -------------------------------------------------------------------------------- /.gitleaksignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joaofnds/go-template/HEAD/.gitleaksignore -------------------------------------------------------------------------------- /.golangci.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joaofnds/go-template/HEAD/.golangci.yaml -------------------------------------------------------------------------------- /.releaserc.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joaofnds/go-template/HEAD/.releaserc.yaml -------------------------------------------------------------------------------- /.sqruff: -------------------------------------------------------------------------------- 1 | [sqruff] 2 | dialect = postgres 3 | -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joaofnds/go-template/HEAD/Dockerfile -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joaofnds/go-template/HEAD/README.md -------------------------------------------------------------------------------- /Taskfile.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joaofnds/go-template/HEAD/Taskfile.yaml -------------------------------------------------------------------------------- /adapter/casbin/authzcasbin_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joaofnds/go-template/HEAD/adapter/casbin/authzcasbin_test.go -------------------------------------------------------------------------------- /adapter/casbin/casbin.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joaofnds/go-template/HEAD/adapter/casbin/casbin.go -------------------------------------------------------------------------------- /adapter/casbin/model.conf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joaofnds/go-template/HEAD/adapter/casbin/model.conf -------------------------------------------------------------------------------- /adapter/casbin/module.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joaofnds/go-template/HEAD/adapter/casbin/module.go -------------------------------------------------------------------------------- /adapter/casbin/permission_manager.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joaofnds/go-template/HEAD/adapter/casbin/permission_manager.go -------------------------------------------------------------------------------- /adapter/casbin/permission_manager_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joaofnds/go-template/HEAD/adapter/casbin/permission_manager_test.go -------------------------------------------------------------------------------- /adapter/casbin/role_manager.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joaofnds/go-template/HEAD/adapter/casbin/role_manager.go -------------------------------------------------------------------------------- /adapter/casbin/role_manager_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joaofnds/go-template/HEAD/adapter/casbin/role_manager_test.go -------------------------------------------------------------------------------- /adapter/casdoor/config.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joaofnds/go-template/HEAD/adapter/casdoor/config.go -------------------------------------------------------------------------------- /adapter/casdoor/module.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joaofnds/go-template/HEAD/adapter/casdoor/module.go -------------------------------------------------------------------------------- /adapter/casdoor/provider_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joaofnds/go-template/HEAD/adapter/casdoor/provider_test.go -------------------------------------------------------------------------------- /adapter/casdoor/token_provider.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joaofnds/go-template/HEAD/adapter/casdoor/token_provider.go -------------------------------------------------------------------------------- /adapter/casdoor/user_provider.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joaofnds/go-template/HEAD/adapter/casdoor/user_provider.go -------------------------------------------------------------------------------- /adapter/featureflags/config.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joaofnds/go-template/HEAD/adapter/featureflags/config.go -------------------------------------------------------------------------------- /adapter/featureflags/featureflags.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joaofnds/go-template/HEAD/adapter/featureflags/featureflags.go -------------------------------------------------------------------------------- /adapter/featureflags/http.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joaofnds/go-template/HEAD/adapter/featureflags/http.go -------------------------------------------------------------------------------- /adapter/health/check.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joaofnds/go-template/HEAD/adapter/health/check.go -------------------------------------------------------------------------------- /adapter/health/health_http/controller.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joaofnds/go-template/HEAD/adapter/health/health_http/controller.go -------------------------------------------------------------------------------- /adapter/health/health_http/controller_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joaofnds/go-template/HEAD/adapter/health/health_http/controller_test.go -------------------------------------------------------------------------------- /adapter/health/health_module/module.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joaofnds/go-template/HEAD/adapter/health/health_module/module.go -------------------------------------------------------------------------------- /adapter/health/service.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joaofnds/go-template/HEAD/adapter/health/service.go -------------------------------------------------------------------------------- /adapter/health/status.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joaofnds/go-template/HEAD/adapter/health/status.go -------------------------------------------------------------------------------- /adapter/health/unhealthy.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joaofnds/go-template/HEAD/adapter/health/unhealthy.go -------------------------------------------------------------------------------- /adapter/http/config.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joaofnds/go-template/HEAD/adapter/http/config.go -------------------------------------------------------------------------------- /adapter/http/fiber.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joaofnds/go-template/HEAD/adapter/http/fiber.go -------------------------------------------------------------------------------- /adapter/http/fiber_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joaofnds/go-template/HEAD/adapter/http/fiber_test.go -------------------------------------------------------------------------------- /adapter/http/nop_probe.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joaofnds/go-template/HEAD/adapter/http/nop_probe.go -------------------------------------------------------------------------------- /adapter/http/prom_probe.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joaofnds/go-template/HEAD/adapter/http/prom_probe.go -------------------------------------------------------------------------------- /adapter/logger/config.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joaofnds/go-template/HEAD/adapter/logger/config.go -------------------------------------------------------------------------------- /adapter/logger/logger.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joaofnds/go-template/HEAD/adapter/logger/logger.go -------------------------------------------------------------------------------- /adapter/logger/nop_logger.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joaofnds/go-template/HEAD/adapter/logger/nop_logger.go -------------------------------------------------------------------------------- /adapter/metrics/config.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joaofnds/go-template/HEAD/adapter/metrics/config.go -------------------------------------------------------------------------------- /adapter/metrics/metrics.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joaofnds/go-template/HEAD/adapter/metrics/metrics.go -------------------------------------------------------------------------------- /adapter/metrics/metrics_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joaofnds/go-template/HEAD/adapter/metrics/metrics_test.go -------------------------------------------------------------------------------- /adapter/mongo/config.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joaofnds/go-template/HEAD/adapter/mongo/config.go -------------------------------------------------------------------------------- /adapter/mongo/health.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joaofnds/go-template/HEAD/adapter/mongo/health.go -------------------------------------------------------------------------------- /adapter/mongo/mongo.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joaofnds/go-template/HEAD/adapter/mongo/mongo.go -------------------------------------------------------------------------------- /adapter/postgres/config.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joaofnds/go-template/HEAD/adapter/postgres/config.go -------------------------------------------------------------------------------- /adapter/postgres/health.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joaofnds/go-template/HEAD/adapter/postgres/health.go -------------------------------------------------------------------------------- /adapter/postgres/logger.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joaofnds/go-template/HEAD/adapter/postgres/logger.go -------------------------------------------------------------------------------- /adapter/postgres/postgres.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joaofnds/go-template/HEAD/adapter/postgres/postgres.go -------------------------------------------------------------------------------- /adapter/queue/client.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joaofnds/go-template/HEAD/adapter/queue/client.go -------------------------------------------------------------------------------- /adapter/queue/logger.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joaofnds/go-template/HEAD/adapter/queue/logger.go -------------------------------------------------------------------------------- /adapter/queue/queue.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joaofnds/go-template/HEAD/adapter/queue/queue.go -------------------------------------------------------------------------------- /adapter/queue/server.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joaofnds/go-template/HEAD/adapter/queue/server.go -------------------------------------------------------------------------------- /adapter/redis/config.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joaofnds/go-template/HEAD/adapter/redis/config.go -------------------------------------------------------------------------------- /adapter/redis/health.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joaofnds/go-template/HEAD/adapter/redis/health.go -------------------------------------------------------------------------------- /adapter/redis/redis.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joaofnds/go-template/HEAD/adapter/redis/redis.go -------------------------------------------------------------------------------- /adapter/time/time_clock.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joaofnds/go-template/HEAD/adapter/time/time_clock.go -------------------------------------------------------------------------------- /adapter/tracing/config.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joaofnds/go-template/HEAD/adapter/tracing/config.go -------------------------------------------------------------------------------- /adapter/tracing/tracing.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joaofnds/go-template/HEAD/adapter/tracing/tracing.go -------------------------------------------------------------------------------- /adapter/uuid/generator.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joaofnds/go-template/HEAD/adapter/uuid/generator.go -------------------------------------------------------------------------------- /adapter/uuid/generator_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joaofnds/go-template/HEAD/adapter/uuid/generator_test.go -------------------------------------------------------------------------------- /adapter/uuid/uuid.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joaofnds/go-template/HEAD/adapter/uuid/uuid.go -------------------------------------------------------------------------------- /adapter/validation/validation.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joaofnds/go-template/HEAD/adapter/validation/validation.go -------------------------------------------------------------------------------- /adapter/watermill/command.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joaofnds/go-template/HEAD/adapter/watermill/command.go -------------------------------------------------------------------------------- /adapter/watermill/event.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joaofnds/go-template/HEAD/adapter/watermill/event.go -------------------------------------------------------------------------------- /adapter/watermill/logger.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joaofnds/go-template/HEAD/adapter/watermill/logger.go -------------------------------------------------------------------------------- /adapter/watermill/marshaler.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joaofnds/go-template/HEAD/adapter/watermill/marshaler.go -------------------------------------------------------------------------------- /adapter/watermill/module.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joaofnds/go-template/HEAD/adapter/watermill/module.go -------------------------------------------------------------------------------- /authn/authn_http/controller.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joaofnds/go-template/HEAD/authn/authn_http/controller.go -------------------------------------------------------------------------------- /authn/authn_http/controller_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joaofnds/go-template/HEAD/authn/authn_http/controller_test.go -------------------------------------------------------------------------------- /authn/authn_http/middleware.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joaofnds/go-template/HEAD/authn/authn_http/middleware.go -------------------------------------------------------------------------------- /authn/authn_module/module.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joaofnds/go-template/HEAD/authn/authn_module/module.go -------------------------------------------------------------------------------- /authn/provider.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joaofnds/go-template/HEAD/authn/provider.go -------------------------------------------------------------------------------- /authn/service.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joaofnds/go-template/HEAD/authn/service.go -------------------------------------------------------------------------------- /authz/authz.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joaofnds/go-template/HEAD/authz/authz.go -------------------------------------------------------------------------------- /authz/authz_http/middleware.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joaofnds/go-template/HEAD/authz/authz_http/middleware.go -------------------------------------------------------------------------------- /authz/authz_http/module.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joaofnds/go-template/HEAD/authz/authz_http/module.go -------------------------------------------------------------------------------- /authz/policy.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joaofnds/go-template/HEAD/authz/policy.go -------------------------------------------------------------------------------- /authz/request.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joaofnds/go-template/HEAD/authz/request.go -------------------------------------------------------------------------------- /cmd/app/app.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joaofnds/go-template/HEAD/cmd/app/app.go -------------------------------------------------------------------------------- /cmd/migrate/migrate.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joaofnds/go-template/HEAD/cmd/migrate/migrate.go -------------------------------------------------------------------------------- /cmd/migrate/migrations/20230521004624_enable_uuid_extension.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joaofnds/go-template/HEAD/cmd/migrate/migrations/20230521004624_enable_uuid_extension.sql -------------------------------------------------------------------------------- /cmd/migrate/migrations/20230521004811_create_users_table.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joaofnds/go-template/HEAD/cmd/migrate/migrations/20230521004811_create_users_table.sql -------------------------------------------------------------------------------- /cmd/worker/worker.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joaofnds/go-template/HEAD/cmd/worker/worker.go -------------------------------------------------------------------------------- /compose.monitoring.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joaofnds/go-template/HEAD/compose.monitoring.yaml -------------------------------------------------------------------------------- /compose.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joaofnds/go-template/HEAD/compose.yaml -------------------------------------------------------------------------------- /config/config.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joaofnds/go-template/HEAD/config/config.go -------------------------------------------------------------------------------- /config/config.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joaofnds/go-template/HEAD/config/config.yaml -------------------------------------------------------------------------------- /etc/casdoor.conf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joaofnds/go-template/HEAD/etc/casdoor.conf -------------------------------------------------------------------------------- /etc/casdoor_init_data.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joaofnds/go-template/HEAD/etc/casdoor_init_data.json -------------------------------------------------------------------------------- /etc/grafana.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joaofnds/go-template/HEAD/etc/grafana.yaml -------------------------------------------------------------------------------- /etc/prometheus.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joaofnds/go-template/HEAD/etc/prometheus.yaml -------------------------------------------------------------------------------- /go.mod: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joaofnds/go-template/HEAD/go.mod -------------------------------------------------------------------------------- /go.sum: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joaofnds/go-template/HEAD/go.sum -------------------------------------------------------------------------------- /internal/appcontext/appcontext.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joaofnds/go-template/HEAD/internal/appcontext/appcontext.go -------------------------------------------------------------------------------- /internal/clock/clock.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joaofnds/go-template/HEAD/internal/clock/clock.go -------------------------------------------------------------------------------- /internal/event/event.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joaofnds/go-template/HEAD/internal/event/event.go -------------------------------------------------------------------------------- /internal/id/generator.go: -------------------------------------------------------------------------------- 1 | package id 2 | 3 | type Generator interface { 4 | NewID() string 5 | } 6 | -------------------------------------------------------------------------------- /internal/mill/mill.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joaofnds/go-template/HEAD/internal/mill/mill.go -------------------------------------------------------------------------------- /internal/ref/ref.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joaofnds/go-template/HEAD/internal/ref/ref.go -------------------------------------------------------------------------------- /internal/ref/ref_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joaofnds/go-template/HEAD/internal/ref/ref_test.go -------------------------------------------------------------------------------- /internal/util/function_name.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joaofnds/go-template/HEAD/internal/util/function_name.go -------------------------------------------------------------------------------- /kv/error.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joaofnds/go-template/HEAD/kv/error.go -------------------------------------------------------------------------------- /kv/kv_adapter/redis_store.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joaofnds/go-template/HEAD/kv/kv_adapter/redis_store.go -------------------------------------------------------------------------------- /kv/kv_adapter/redis_store_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joaofnds/go-template/HEAD/kv/kv_adapter/redis_store_test.go -------------------------------------------------------------------------------- /kv/kv_http/controller.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joaofnds/go-template/HEAD/kv/kv_http/controller.go -------------------------------------------------------------------------------- /kv/kv_http/controller_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joaofnds/go-template/HEAD/kv/kv_http/controller_test.go -------------------------------------------------------------------------------- /kv/kv_module/module.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joaofnds/go-template/HEAD/kv/kv_module/module.go -------------------------------------------------------------------------------- /kv/store.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joaofnds/go-template/HEAD/kv/store.go -------------------------------------------------------------------------------- /mise.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joaofnds/go-template/HEAD/mise.toml -------------------------------------------------------------------------------- /test/authn.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joaofnds/go-template/HEAD/test/authn.go -------------------------------------------------------------------------------- /test/available_port.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joaofnds/go-template/HEAD/test/available_port.go -------------------------------------------------------------------------------- /test/driver/auth.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joaofnds/go-template/HEAD/test/driver/auth.go -------------------------------------------------------------------------------- /test/driver/driver.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joaofnds/go-template/HEAD/test/driver/driver.go -------------------------------------------------------------------------------- /test/driver/health.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joaofnds/go-template/HEAD/test/driver/health.go -------------------------------------------------------------------------------- /test/driver/kv.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joaofnds/go-template/HEAD/test/driver/kv.go -------------------------------------------------------------------------------- /test/driver/request.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joaofnds/go-template/HEAD/test/driver/request.go -------------------------------------------------------------------------------- /test/driver/user.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joaofnds/go-template/HEAD/test/driver/user.go -------------------------------------------------------------------------------- /test/fixed_clock.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joaofnds/go-template/HEAD/test/fixed_clock.go -------------------------------------------------------------------------------- /test/harness/harness.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joaofnds/go-template/HEAD/test/harness/harness.go -------------------------------------------------------------------------------- /test/harness/options.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joaofnds/go-template/HEAD/test/harness/options.go -------------------------------------------------------------------------------- /test/k6/load-test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joaofnds/go-template/HEAD/test/k6/load-test.js -------------------------------------------------------------------------------- /test/matchers/must.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joaofnds/go-template/HEAD/test/matchers/must.go -------------------------------------------------------------------------------- /test/queue.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joaofnds/go-template/HEAD/test/queue.go -------------------------------------------------------------------------------- /test/req/headers.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joaofnds/go-template/HEAD/test/req/headers.go -------------------------------------------------------------------------------- /test/req/req.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joaofnds/go-template/HEAD/test/req/req.go -------------------------------------------------------------------------------- /user/emitter.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joaofnds/go-template/HEAD/user/emitter.go -------------------------------------------------------------------------------- /user/error.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joaofnds/go-template/HEAD/user/error.go -------------------------------------------------------------------------------- /user/event.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joaofnds/go-template/HEAD/user/event.go -------------------------------------------------------------------------------- /user/permissions.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joaofnds/go-template/HEAD/user/permissions.go -------------------------------------------------------------------------------- /user/repository.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joaofnds/go-template/HEAD/user/repository.go -------------------------------------------------------------------------------- /user/service.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joaofnds/go-template/HEAD/user/service.go -------------------------------------------------------------------------------- /user/service_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joaofnds/go-template/HEAD/user/service_test.go -------------------------------------------------------------------------------- /user/user.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joaofnds/go-template/HEAD/user/user.go -------------------------------------------------------------------------------- /user/user_adapter/mapper.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joaofnds/go-template/HEAD/user/user_adapter/mapper.go -------------------------------------------------------------------------------- /user/user_adapter/mongo_repository.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joaofnds/go-template/HEAD/user/user_adapter/mongo_repository.go -------------------------------------------------------------------------------- /user/user_adapter/postgres_repository.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joaofnds/go-template/HEAD/user/user_adapter/postgres_repository.go -------------------------------------------------------------------------------- /user/user_adapter/prom_probe.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joaofnds/go-template/HEAD/user/user_adapter/prom_probe.go -------------------------------------------------------------------------------- /user/user_http/controller.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joaofnds/go-template/HEAD/user/user_http/controller.go -------------------------------------------------------------------------------- /user/user_http/controller_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joaofnds/go-template/HEAD/user/user_http/controller_test.go -------------------------------------------------------------------------------- /user/user_http/dto.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joaofnds/go-template/HEAD/user/user_http/dto.go -------------------------------------------------------------------------------- /user/user_module/module.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joaofnds/go-template/HEAD/user/user_module/module.go -------------------------------------------------------------------------------- /user/user_queue/greeter_queue.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joaofnds/go-template/HEAD/user/user_queue/greeter_queue.go -------------------------------------------------------------------------------- /user/user_queue/greeter_worker.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joaofnds/go-template/HEAD/user/user_queue/greeter_worker.go -------------------------------------------------------------------------------- /user/user_queue/permissions_cleanup_queue.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joaofnds/go-template/HEAD/user/user_queue/permissions_cleanup_queue.go -------------------------------------------------------------------------------- /user/user_queue/permissions_cleanup_worker.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joaofnds/go-template/HEAD/user/user_queue/permissions_cleanup_worker.go -------------------------------------------------------------------------------- /user/user_queue/tasks.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joaofnds/go-template/HEAD/user/user_queue/tasks.go --------------------------------------------------------------------------------