├── .gitignore ├── README.md └── src ├── concurrency ├── pipeline │ ├── example │ │ ├── e00 │ │ │ └── main.go │ │ ├── e01 │ │ │ └── main.go │ │ ├── e02 │ │ │ └── main.go │ │ ├── e03 │ │ │ └── main.go │ │ ├── e04 │ │ │ └── main.go │ │ └── util.go │ ├── pipeline.go │ ├── pipeline_bench_test.go │ └── pipeline_test.go ├── semaphore │ ├── example │ │ └── main.go │ └── semaphore.go └── workerpool │ ├── example │ └── main.go │ ├── types.go │ └── worker_pool.go ├── datastructure ├── binarytree │ └── binarytree.go ├── hashmap │ └── hashmap.go ├── linkedlist │ ├── example │ │ └── main.go │ ├── linkedlist.go │ └── linkedlist_test.go ├── queue │ ├── queue.go │ └── queue_test.go ├── stack │ └── stack.go └── types │ ├── func.go │ └── generic.go ├── distributed └── semaphore │ ├── example │ └── main.go │ ├── go.mod │ ├── go.sum │ └── semaphore.go ├── etc ├── XAAM │ ├── .env │ ├── .test.env │ ├── cmd │ │ └── http │ │ │ └── main.go │ ├── docker-compose.yaml │ ├── e2e │ │ ├── api_v1_authotrisation_check_test.go │ │ └── ping_test.go │ ├── files │ │ └── sql │ │ │ ├── 0001.sql │ │ │ └── 0002.sql │ ├── go.mod │ ├── go.sum │ ├── internal │ │ ├── delivery │ │ │ ├── auth_check_handler.go │ │ │ ├── ping_handler.go │ │ │ └── utils.go │ │ ├── di │ │ │ └── di.go │ │ ├── domain │ │ │ ├── entity │ │ │ │ ├── action.go │ │ │ │ ├── auth │ │ │ │ │ ├── check_request.go │ │ │ │ │ ├── check_response.go │ │ │ │ │ └── find_resources_by_compliance_request.go │ │ │ │ ├── business │ │ │ │ │ └── get_one_response.go │ │ │ │ ├── errors.go │ │ │ │ ├── resource.go │ │ │ │ └── target_resource_action.go │ │ │ ├── repo │ │ │ │ ├── business_repo.go │ │ │ │ ├── resource_action_repo.go │ │ │ │ └── resource_repo.go │ │ │ └── usecase │ │ │ │ ├── auth │ │ │ │ ├── find_resources_by_compliance_use_case.go │ │ │ │ └── find_resources_by_compliance_use_case_test.go │ │ │ │ └── business │ │ │ │ └── find_one_by_business_id_use_case.go │ │ ├── mock │ │ │ └── domain │ │ │ │ └── repo │ │ │ │ ├── business_repo.go │ │ │ │ ├── policy_repo.go │ │ │ │ └── resource_repo.go │ │ └── source │ │ │ ├── business_repo.go │ │ │ ├── resource_action_repo.go │ │ │ └── resource_repo.go │ └── pkg │ │ └── slices │ │ └── slices.go ├── clean-arch-ddd-cqrs-es │ ├── go.mod │ ├── internal │ │ ├── domain │ │ │ ├── error.go │ │ │ ├── task │ │ │ │ ├── error_code.go │ │ │ │ └── task.go │ │ │ └── user │ │ │ │ ├── error_code.go │ │ │ │ └── user.go │ │ └── infrastructure │ │ │ └── times │ │ │ └── datetime.go │ └── pkg │ │ └── errr │ │ └── errr.go ├── demo-event-sourcing │ ├── .gitignore │ ├── cmd │ │ └── todo │ │ │ └── main.go │ ├── go.mod │ ├── go.sum │ └── internal │ │ ├── application │ │ ├── command_handler.go │ │ └── projection_handler.go │ │ ├── domain │ │ ├── communication │ │ │ └── service.go │ │ ├── report │ │ │ ├── report.go │ │ │ └── repository.go │ │ ├── task │ │ │ ├── events.go │ │ │ ├── repository.go │ │ │ └── task.go │ │ └── types.go │ │ └── infrastructure │ │ ├── repository │ │ └── task_repository.go │ │ └── service │ │ └── service.go ├── demo-kong-plugin │ ├── .gitignore │ ├── Dockerfile │ ├── Makefile │ ├── README.md │ ├── cmd │ │ └── kong │ │ │ └── keychecker │ │ │ └── main.go │ ├── config.yml │ ├── docker-compose.yml │ ├── go.mod │ ├── go.sum │ ├── internal │ │ ├── data │ │ │ └── token_repository.go │ │ ├── delivery │ │ │ └── kong │ │ │ │ └── key_checker.go │ │ ├── di │ │ │ ├── app_module.go │ │ │ ├── repo_module.go │ │ │ └── usecase_module.go │ │ └── domain │ │ │ ├── entity │ │ │ └── keychecker │ │ │ │ ├── errors.go │ │ │ │ └── validate_key_input.go │ │ │ ├── repo │ │ │ └── token_repository.go │ │ │ └── usecase │ │ │ └── keychecker │ │ │ ├── get_token_use_case.go │ │ │ └── validate_key_use_case.go │ ├── pkg │ │ └── .gitkeep │ └── scripts │ │ └── start-development.sh ├── demo-nats │ ├── .gitignore │ ├── docker-compose.yaml │ ├── go.mod │ ├── go.sum │ └── pubsub │ │ ├── consumer │ │ └── main.go │ │ └── publisher │ │ └── main.go ├── demo-oauth2 │ ├── .gitignore │ ├── cmd │ │ ├── auth │ │ │ └── main.go │ │ └── pokedex │ │ │ └── main.go │ ├── docker-compose.yaml │ ├── go.mod │ ├── go.sum │ └── internal │ │ ├── auth │ │ ├── clients.go │ │ ├── handlers.go │ │ ├── repositories.go │ │ └── types.go │ │ └── pokedex │ │ ├── clients.go │ │ └── handlers.go ├── demo-redlock │ ├── docker-compose.yml │ ├── example │ │ └── main.go │ ├── go.mod │ ├── go.sum │ └── redlock.go ├── demo-unit-test │ ├── go.mod │ ├── go.sum │ ├── internal │ │ ├── article │ │ │ ├── delivery.go │ │ │ ├── entity.go │ │ │ ├── repo.go │ │ │ └── usecase.go │ │ └── user │ │ │ ├── delivery.go │ │ │ ├── delivery_test.go │ │ │ ├── entity.go │ │ │ ├── repo.go │ │ │ ├── repo_mock_test.go │ │ │ ├── repo_test.go │ │ │ ├── usecase.go │ │ │ ├── usecase_mock_test.go │ │ │ └── usecase_test.go │ ├── pkg │ │ └── calc │ │ │ ├── calc.go │ │ │ └── calc_test.go │ └── usecase_test.go ├── go-calculator │ ├── Dockerfile │ ├── cmd.go │ ├── go.mod │ └── go.sum └── kafka │ ├── basic │ ├── consumer │ │ └── main.go │ └── publisher │ │ └── main.go │ ├── docker-compose.yml │ ├── go.mod │ └── go.sum └── k8s ├── .gitignore ├── demo-flux ├── apps │ ├── base │ │ ├── calculator │ │ │ ├── canary.yaml │ │ │ ├── configMap.yaml │ │ │ ├── deployment.yaml │ │ │ ├── kustomization.yaml │ │ │ ├── namespace.yaml │ │ │ ├── service.yaml │ │ │ └── virtualService.yaml │ │ ├── postgresql-core │ │ │ ├── helmRelease.yaml │ │ │ ├── helmRepository.yaml │ │ │ └── kustomization.yaml │ │ └── redis-cache │ │ │ ├── deployment.yaml │ │ │ ├── kustomization.yaml │ │ │ ├── namespace.yaml │ │ │ └── service.yaml │ └── overlays │ │ ├── production │ │ └── calculator │ │ │ ├── configMap.yaml │ │ │ └── kustomization.yaml │ │ └── staging │ │ └── calculator │ │ ├── configMap.yaml │ │ └── kustomization.yaml ├── clusters │ ├── development │ │ ├── apps.yaml │ │ ├── flux-system │ │ │ ├── gotk-components.yaml │ │ │ ├── gotk-sync.yaml │ │ │ └── kustomization.yaml │ │ ├── infrastructure.yaml │ │ └── sources.yaml │ ├── production │ │ └── .gitkeep │ └── staging │ │ ├── apps.yaml │ │ └── flux-system │ │ ├── gotk-components.yaml │ │ ├── gotk-sync.yaml │ │ └── kustomization.yaml └── infrastructure │ └── base │ ├── centralized-log │ ├── beat.yaml │ ├── elasticsearch.yaml │ ├── kibana.yaml │ ├── kustomization.yaml │ ├── logstash.yaml │ └── namespace.yaml │ ├── datadog │ ├── helmRelease.yaml │ ├── helmRepository.yaml │ ├── kustomization.yaml │ └── namespace.yaml │ ├── elastic-system │ ├── crds.yaml │ ├── kustomization.yaml │ └── operator.yaml │ ├── flagger │ ├── helmRelease.yaml │ ├── helmRepository.yaml │ ├── kustomization.yaml │ └── namespace.yaml │ └── gloo-system │ ├── deployment.yaml │ ├── gateway.yaml │ ├── helmRelease.yaml │ ├── helmRepository.yaml │ ├── kustomization.yaml │ ├── namespace.yaml │ ├── settings.yaml │ ├── upstreams.yaml │ └── virtualServices.yaml ├── demo-helm └── charts │ └── calculator │ ├── .helmignore │ ├── Chart.yaml │ ├── templates │ ├── configmap.yaml │ ├── deployment.yaml │ └── service.yaml │ └── values.yaml └── demo-kustomization ├── base ├── calculator │ ├── configMap.yaml │ ├── deployment.yaml │ ├── kustomization.yaml │ └── service.yaml ├── postgresql-core │ ├── helmRelease.yaml │ ├── helmRepository.yaml │ └── kustomization.yaml └── redis-cache │ ├── kustomization.yaml │ └── values.yaml └── overlays ├── production ├── calculator │ ├── configMap.yaml │ ├── deployment.yaml │ └── kustomization.yaml └── redis-cache │ ├── kustomization.yaml │ └── values.yaml └── staging ├── calculator ├── configMap.yaml └── kustomization.yaml └── redis-cache └── kustomization.yaml /.gitignore: -------------------------------------------------------------------------------- 1 | src/playground.go 2 | .DS_Store 3 | .vscode 4 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/README.md -------------------------------------------------------------------------------- /src/concurrency/pipeline/example/e00/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/src/concurrency/pipeline/example/e00/main.go -------------------------------------------------------------------------------- /src/concurrency/pipeline/example/e01/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/src/concurrency/pipeline/example/e01/main.go -------------------------------------------------------------------------------- /src/concurrency/pipeline/example/e02/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/src/concurrency/pipeline/example/e02/main.go -------------------------------------------------------------------------------- /src/concurrency/pipeline/example/e03/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/src/concurrency/pipeline/example/e03/main.go -------------------------------------------------------------------------------- /src/concurrency/pipeline/example/e04/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/src/concurrency/pipeline/example/e04/main.go -------------------------------------------------------------------------------- /src/concurrency/pipeline/example/util.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/src/concurrency/pipeline/example/util.go -------------------------------------------------------------------------------- /src/concurrency/pipeline/pipeline.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/src/concurrency/pipeline/pipeline.go -------------------------------------------------------------------------------- /src/concurrency/pipeline/pipeline_bench_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/src/concurrency/pipeline/pipeline_bench_test.go -------------------------------------------------------------------------------- /src/concurrency/pipeline/pipeline_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/src/concurrency/pipeline/pipeline_test.go -------------------------------------------------------------------------------- /src/concurrency/semaphore/example/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/src/concurrency/semaphore/example/main.go -------------------------------------------------------------------------------- /src/concurrency/semaphore/semaphore.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/src/concurrency/semaphore/semaphore.go -------------------------------------------------------------------------------- /src/concurrency/workerpool/example/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/src/concurrency/workerpool/example/main.go -------------------------------------------------------------------------------- /src/concurrency/workerpool/types.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/src/concurrency/workerpool/types.go -------------------------------------------------------------------------------- /src/concurrency/workerpool/worker_pool.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/src/concurrency/workerpool/worker_pool.go -------------------------------------------------------------------------------- /src/datastructure/binarytree/binarytree.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/src/datastructure/binarytree/binarytree.go -------------------------------------------------------------------------------- /src/datastructure/hashmap/hashmap.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/src/datastructure/hashmap/hashmap.go -------------------------------------------------------------------------------- /src/datastructure/linkedlist/example/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/src/datastructure/linkedlist/example/main.go -------------------------------------------------------------------------------- /src/datastructure/linkedlist/linkedlist.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/src/datastructure/linkedlist/linkedlist.go -------------------------------------------------------------------------------- /src/datastructure/linkedlist/linkedlist_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/src/datastructure/linkedlist/linkedlist_test.go -------------------------------------------------------------------------------- /src/datastructure/queue/queue.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/src/datastructure/queue/queue.go -------------------------------------------------------------------------------- /src/datastructure/queue/queue_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/src/datastructure/queue/queue_test.go -------------------------------------------------------------------------------- /src/datastructure/stack/stack.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/src/datastructure/stack/stack.go -------------------------------------------------------------------------------- /src/datastructure/types/func.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/src/datastructure/types/func.go -------------------------------------------------------------------------------- /src/datastructure/types/generic.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/src/datastructure/types/generic.go -------------------------------------------------------------------------------- /src/distributed/semaphore/example/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/src/distributed/semaphore/example/main.go -------------------------------------------------------------------------------- /src/distributed/semaphore/go.mod: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/src/distributed/semaphore/go.mod -------------------------------------------------------------------------------- /src/distributed/semaphore/go.sum: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/src/distributed/semaphore/go.sum -------------------------------------------------------------------------------- /src/distributed/semaphore/semaphore.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/src/distributed/semaphore/semaphore.go -------------------------------------------------------------------------------- /src/etc/XAAM/.env: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/src/etc/XAAM/.env -------------------------------------------------------------------------------- /src/etc/XAAM/.test.env: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/src/etc/XAAM/.test.env -------------------------------------------------------------------------------- /src/etc/XAAM/cmd/http/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/src/etc/XAAM/cmd/http/main.go -------------------------------------------------------------------------------- /src/etc/XAAM/docker-compose.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/src/etc/XAAM/docker-compose.yaml -------------------------------------------------------------------------------- /src/etc/XAAM/e2e/api_v1_authotrisation_check_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/src/etc/XAAM/e2e/api_v1_authotrisation_check_test.go -------------------------------------------------------------------------------- /src/etc/XAAM/e2e/ping_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/src/etc/XAAM/e2e/ping_test.go -------------------------------------------------------------------------------- /src/etc/XAAM/files/sql/0001.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/src/etc/XAAM/files/sql/0001.sql -------------------------------------------------------------------------------- /src/etc/XAAM/files/sql/0002.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/src/etc/XAAM/files/sql/0002.sql -------------------------------------------------------------------------------- /src/etc/XAAM/go.mod: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/src/etc/XAAM/go.mod -------------------------------------------------------------------------------- /src/etc/XAAM/go.sum: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/src/etc/XAAM/go.sum -------------------------------------------------------------------------------- /src/etc/XAAM/internal/delivery/auth_check_handler.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/src/etc/XAAM/internal/delivery/auth_check_handler.go -------------------------------------------------------------------------------- /src/etc/XAAM/internal/delivery/ping_handler.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/src/etc/XAAM/internal/delivery/ping_handler.go -------------------------------------------------------------------------------- /src/etc/XAAM/internal/delivery/utils.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/src/etc/XAAM/internal/delivery/utils.go -------------------------------------------------------------------------------- /src/etc/XAAM/internal/di/di.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/src/etc/XAAM/internal/di/di.go -------------------------------------------------------------------------------- /src/etc/XAAM/internal/domain/entity/action.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/src/etc/XAAM/internal/domain/entity/action.go -------------------------------------------------------------------------------- /src/etc/XAAM/internal/domain/entity/auth/check_request.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/src/etc/XAAM/internal/domain/entity/auth/check_request.go -------------------------------------------------------------------------------- /src/etc/XAAM/internal/domain/entity/auth/check_response.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/src/etc/XAAM/internal/domain/entity/auth/check_response.go -------------------------------------------------------------------------------- /src/etc/XAAM/internal/domain/entity/auth/find_resources_by_compliance_request.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/src/etc/XAAM/internal/domain/entity/auth/find_resources_by_compliance_request.go -------------------------------------------------------------------------------- /src/etc/XAAM/internal/domain/entity/business/get_one_response.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/src/etc/XAAM/internal/domain/entity/business/get_one_response.go -------------------------------------------------------------------------------- /src/etc/XAAM/internal/domain/entity/errors.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/src/etc/XAAM/internal/domain/entity/errors.go -------------------------------------------------------------------------------- /src/etc/XAAM/internal/domain/entity/resource.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/src/etc/XAAM/internal/domain/entity/resource.go -------------------------------------------------------------------------------- /src/etc/XAAM/internal/domain/entity/target_resource_action.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/src/etc/XAAM/internal/domain/entity/target_resource_action.go -------------------------------------------------------------------------------- /src/etc/XAAM/internal/domain/repo/business_repo.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/src/etc/XAAM/internal/domain/repo/business_repo.go -------------------------------------------------------------------------------- /src/etc/XAAM/internal/domain/repo/resource_action_repo.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/src/etc/XAAM/internal/domain/repo/resource_action_repo.go -------------------------------------------------------------------------------- /src/etc/XAAM/internal/domain/repo/resource_repo.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/src/etc/XAAM/internal/domain/repo/resource_repo.go -------------------------------------------------------------------------------- /src/etc/XAAM/internal/domain/usecase/auth/find_resources_by_compliance_use_case.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/src/etc/XAAM/internal/domain/usecase/auth/find_resources_by_compliance_use_case.go -------------------------------------------------------------------------------- /src/etc/XAAM/internal/domain/usecase/auth/find_resources_by_compliance_use_case_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/src/etc/XAAM/internal/domain/usecase/auth/find_resources_by_compliance_use_case_test.go -------------------------------------------------------------------------------- /src/etc/XAAM/internal/domain/usecase/business/find_one_by_business_id_use_case.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/src/etc/XAAM/internal/domain/usecase/business/find_one_by_business_id_use_case.go -------------------------------------------------------------------------------- /src/etc/XAAM/internal/mock/domain/repo/business_repo.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/src/etc/XAAM/internal/mock/domain/repo/business_repo.go -------------------------------------------------------------------------------- /src/etc/XAAM/internal/mock/domain/repo/policy_repo.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/src/etc/XAAM/internal/mock/domain/repo/policy_repo.go -------------------------------------------------------------------------------- /src/etc/XAAM/internal/mock/domain/repo/resource_repo.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/src/etc/XAAM/internal/mock/domain/repo/resource_repo.go -------------------------------------------------------------------------------- /src/etc/XAAM/internal/source/business_repo.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/src/etc/XAAM/internal/source/business_repo.go -------------------------------------------------------------------------------- /src/etc/XAAM/internal/source/resource_action_repo.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/src/etc/XAAM/internal/source/resource_action_repo.go -------------------------------------------------------------------------------- /src/etc/XAAM/internal/source/resource_repo.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/src/etc/XAAM/internal/source/resource_repo.go -------------------------------------------------------------------------------- /src/etc/XAAM/pkg/slices/slices.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/src/etc/XAAM/pkg/slices/slices.go -------------------------------------------------------------------------------- /src/etc/clean-arch-ddd-cqrs-es/go.mod: -------------------------------------------------------------------------------- 1 | module github.com/syafdia/clean-arch-ddd-cqrs-es 2 | 3 | go 1.20 4 | -------------------------------------------------------------------------------- /src/etc/clean-arch-ddd-cqrs-es/internal/domain/error.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/src/etc/clean-arch-ddd-cqrs-es/internal/domain/error.go -------------------------------------------------------------------------------- /src/etc/clean-arch-ddd-cqrs-es/internal/domain/task/error_code.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/src/etc/clean-arch-ddd-cqrs-es/internal/domain/task/error_code.go -------------------------------------------------------------------------------- /src/etc/clean-arch-ddd-cqrs-es/internal/domain/task/task.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/src/etc/clean-arch-ddd-cqrs-es/internal/domain/task/task.go -------------------------------------------------------------------------------- /src/etc/clean-arch-ddd-cqrs-es/internal/domain/user/error_code.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/src/etc/clean-arch-ddd-cqrs-es/internal/domain/user/error_code.go -------------------------------------------------------------------------------- /src/etc/clean-arch-ddd-cqrs-es/internal/domain/user/user.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/src/etc/clean-arch-ddd-cqrs-es/internal/domain/user/user.go -------------------------------------------------------------------------------- /src/etc/clean-arch-ddd-cqrs-es/internal/infrastructure/times/datetime.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/src/etc/clean-arch-ddd-cqrs-es/internal/infrastructure/times/datetime.go -------------------------------------------------------------------------------- /src/etc/clean-arch-ddd-cqrs-es/pkg/errr/errr.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/src/etc/clean-arch-ddd-cqrs-es/pkg/errr/errr.go -------------------------------------------------------------------------------- /src/etc/demo-event-sourcing/.gitignore: -------------------------------------------------------------------------------- 1 | vendor/ 2 | tmp/ -------------------------------------------------------------------------------- /src/etc/demo-event-sourcing/cmd/todo/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/src/etc/demo-event-sourcing/cmd/todo/main.go -------------------------------------------------------------------------------- /src/etc/demo-event-sourcing/go.mod: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/src/etc/demo-event-sourcing/go.mod -------------------------------------------------------------------------------- /src/etc/demo-event-sourcing/go.sum: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/src/etc/demo-event-sourcing/go.sum -------------------------------------------------------------------------------- /src/etc/demo-event-sourcing/internal/application/command_handler.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/src/etc/demo-event-sourcing/internal/application/command_handler.go -------------------------------------------------------------------------------- /src/etc/demo-event-sourcing/internal/application/projection_handler.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/src/etc/demo-event-sourcing/internal/application/projection_handler.go -------------------------------------------------------------------------------- /src/etc/demo-event-sourcing/internal/domain/communication/service.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/src/etc/demo-event-sourcing/internal/domain/communication/service.go -------------------------------------------------------------------------------- /src/etc/demo-event-sourcing/internal/domain/report/report.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/src/etc/demo-event-sourcing/internal/domain/report/report.go -------------------------------------------------------------------------------- /src/etc/demo-event-sourcing/internal/domain/report/repository.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/src/etc/demo-event-sourcing/internal/domain/report/repository.go -------------------------------------------------------------------------------- /src/etc/demo-event-sourcing/internal/domain/task/events.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/src/etc/demo-event-sourcing/internal/domain/task/events.go -------------------------------------------------------------------------------- /src/etc/demo-event-sourcing/internal/domain/task/repository.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/src/etc/demo-event-sourcing/internal/domain/task/repository.go -------------------------------------------------------------------------------- /src/etc/demo-event-sourcing/internal/domain/task/task.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/src/etc/demo-event-sourcing/internal/domain/task/task.go -------------------------------------------------------------------------------- /src/etc/demo-event-sourcing/internal/domain/types.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/src/etc/demo-event-sourcing/internal/domain/types.go -------------------------------------------------------------------------------- /src/etc/demo-event-sourcing/internal/infrastructure/repository/task_repository.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/src/etc/demo-event-sourcing/internal/infrastructure/repository/task_repository.go -------------------------------------------------------------------------------- /src/etc/demo-event-sourcing/internal/infrastructure/service/service.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/src/etc/demo-event-sourcing/internal/infrastructure/service/service.go -------------------------------------------------------------------------------- /src/etc/demo-kong-plugin/.gitignore: -------------------------------------------------------------------------------- 1 | bin 2 | vendor -------------------------------------------------------------------------------- /src/etc/demo-kong-plugin/Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/src/etc/demo-kong-plugin/Dockerfile -------------------------------------------------------------------------------- /src/etc/demo-kong-plugin/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/src/etc/demo-kong-plugin/Makefile -------------------------------------------------------------------------------- /src/etc/demo-kong-plugin/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/src/etc/demo-kong-plugin/README.md -------------------------------------------------------------------------------- /src/etc/demo-kong-plugin/cmd/kong/keychecker/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/src/etc/demo-kong-plugin/cmd/kong/keychecker/main.go -------------------------------------------------------------------------------- /src/etc/demo-kong-plugin/config.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/src/etc/demo-kong-plugin/config.yml -------------------------------------------------------------------------------- /src/etc/demo-kong-plugin/docker-compose.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/src/etc/demo-kong-plugin/docker-compose.yml -------------------------------------------------------------------------------- /src/etc/demo-kong-plugin/go.mod: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/src/etc/demo-kong-plugin/go.mod -------------------------------------------------------------------------------- /src/etc/demo-kong-plugin/go.sum: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/src/etc/demo-kong-plugin/go.sum -------------------------------------------------------------------------------- /src/etc/demo-kong-plugin/internal/data/token_repository.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/src/etc/demo-kong-plugin/internal/data/token_repository.go -------------------------------------------------------------------------------- /src/etc/demo-kong-plugin/internal/delivery/kong/key_checker.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/src/etc/demo-kong-plugin/internal/delivery/kong/key_checker.go -------------------------------------------------------------------------------- /src/etc/demo-kong-plugin/internal/di/app_module.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/src/etc/demo-kong-plugin/internal/di/app_module.go -------------------------------------------------------------------------------- /src/etc/demo-kong-plugin/internal/di/repo_module.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/src/etc/demo-kong-plugin/internal/di/repo_module.go -------------------------------------------------------------------------------- /src/etc/demo-kong-plugin/internal/di/usecase_module.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/src/etc/demo-kong-plugin/internal/di/usecase_module.go -------------------------------------------------------------------------------- /src/etc/demo-kong-plugin/internal/domain/entity/keychecker/errors.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/src/etc/demo-kong-plugin/internal/domain/entity/keychecker/errors.go -------------------------------------------------------------------------------- /src/etc/demo-kong-plugin/internal/domain/entity/keychecker/validate_key_input.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/src/etc/demo-kong-plugin/internal/domain/entity/keychecker/validate_key_input.go -------------------------------------------------------------------------------- /src/etc/demo-kong-plugin/internal/domain/repo/token_repository.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/src/etc/demo-kong-plugin/internal/domain/repo/token_repository.go -------------------------------------------------------------------------------- /src/etc/demo-kong-plugin/internal/domain/usecase/keychecker/get_token_use_case.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/src/etc/demo-kong-plugin/internal/domain/usecase/keychecker/get_token_use_case.go -------------------------------------------------------------------------------- /src/etc/demo-kong-plugin/internal/domain/usecase/keychecker/validate_key_use_case.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/src/etc/demo-kong-plugin/internal/domain/usecase/keychecker/validate_key_use_case.go -------------------------------------------------------------------------------- /src/etc/demo-kong-plugin/pkg/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/etc/demo-kong-plugin/scripts/start-development.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/src/etc/demo-kong-plugin/scripts/start-development.sh -------------------------------------------------------------------------------- /src/etc/demo-nats/.gitignore: -------------------------------------------------------------------------------- 1 | vendor/ -------------------------------------------------------------------------------- /src/etc/demo-nats/docker-compose.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/src/etc/demo-nats/docker-compose.yaml -------------------------------------------------------------------------------- /src/etc/demo-nats/go.mod: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/src/etc/demo-nats/go.mod -------------------------------------------------------------------------------- /src/etc/demo-nats/go.sum: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/src/etc/demo-nats/go.sum -------------------------------------------------------------------------------- /src/etc/demo-nats/pubsub/consumer/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/src/etc/demo-nats/pubsub/consumer/main.go -------------------------------------------------------------------------------- /src/etc/demo-nats/pubsub/publisher/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/src/etc/demo-nats/pubsub/publisher/main.go -------------------------------------------------------------------------------- /src/etc/demo-oauth2/.gitignore: -------------------------------------------------------------------------------- 1 | vendor/ 2 | volumes/ -------------------------------------------------------------------------------- /src/etc/demo-oauth2/cmd/auth/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/src/etc/demo-oauth2/cmd/auth/main.go -------------------------------------------------------------------------------- /src/etc/demo-oauth2/cmd/pokedex/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/src/etc/demo-oauth2/cmd/pokedex/main.go -------------------------------------------------------------------------------- /src/etc/demo-oauth2/docker-compose.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/src/etc/demo-oauth2/docker-compose.yaml -------------------------------------------------------------------------------- /src/etc/demo-oauth2/go.mod: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/src/etc/demo-oauth2/go.mod -------------------------------------------------------------------------------- /src/etc/demo-oauth2/go.sum: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/src/etc/demo-oauth2/go.sum -------------------------------------------------------------------------------- /src/etc/demo-oauth2/internal/auth/clients.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/src/etc/demo-oauth2/internal/auth/clients.go -------------------------------------------------------------------------------- /src/etc/demo-oauth2/internal/auth/handlers.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/src/etc/demo-oauth2/internal/auth/handlers.go -------------------------------------------------------------------------------- /src/etc/demo-oauth2/internal/auth/repositories.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/src/etc/demo-oauth2/internal/auth/repositories.go -------------------------------------------------------------------------------- /src/etc/demo-oauth2/internal/auth/types.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/src/etc/demo-oauth2/internal/auth/types.go -------------------------------------------------------------------------------- /src/etc/demo-oauth2/internal/pokedex/clients.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/src/etc/demo-oauth2/internal/pokedex/clients.go -------------------------------------------------------------------------------- /src/etc/demo-oauth2/internal/pokedex/handlers.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/src/etc/demo-oauth2/internal/pokedex/handlers.go -------------------------------------------------------------------------------- /src/etc/demo-redlock/docker-compose.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/src/etc/demo-redlock/docker-compose.yml -------------------------------------------------------------------------------- /src/etc/demo-redlock/example/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/src/etc/demo-redlock/example/main.go -------------------------------------------------------------------------------- /src/etc/demo-redlock/go.mod: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/src/etc/demo-redlock/go.mod -------------------------------------------------------------------------------- /src/etc/demo-redlock/go.sum: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/src/etc/demo-redlock/go.sum -------------------------------------------------------------------------------- /src/etc/demo-redlock/redlock.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/src/etc/demo-redlock/redlock.go -------------------------------------------------------------------------------- /src/etc/demo-unit-test/go.mod: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/src/etc/demo-unit-test/go.mod -------------------------------------------------------------------------------- /src/etc/demo-unit-test/go.sum: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/src/etc/demo-unit-test/go.sum -------------------------------------------------------------------------------- /src/etc/demo-unit-test/internal/article/delivery.go: -------------------------------------------------------------------------------- 1 | package article 2 | -------------------------------------------------------------------------------- /src/etc/demo-unit-test/internal/article/entity.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/src/etc/demo-unit-test/internal/article/entity.go -------------------------------------------------------------------------------- /src/etc/demo-unit-test/internal/article/repo.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/src/etc/demo-unit-test/internal/article/repo.go -------------------------------------------------------------------------------- /src/etc/demo-unit-test/internal/article/usecase.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/src/etc/demo-unit-test/internal/article/usecase.go -------------------------------------------------------------------------------- /src/etc/demo-unit-test/internal/user/delivery.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/src/etc/demo-unit-test/internal/user/delivery.go -------------------------------------------------------------------------------- /src/etc/demo-unit-test/internal/user/delivery_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/src/etc/demo-unit-test/internal/user/delivery_test.go -------------------------------------------------------------------------------- /src/etc/demo-unit-test/internal/user/entity.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/src/etc/demo-unit-test/internal/user/entity.go -------------------------------------------------------------------------------- /src/etc/demo-unit-test/internal/user/repo.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/src/etc/demo-unit-test/internal/user/repo.go -------------------------------------------------------------------------------- /src/etc/demo-unit-test/internal/user/repo_mock_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/src/etc/demo-unit-test/internal/user/repo_mock_test.go -------------------------------------------------------------------------------- /src/etc/demo-unit-test/internal/user/repo_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/src/etc/demo-unit-test/internal/user/repo_test.go -------------------------------------------------------------------------------- /src/etc/demo-unit-test/internal/user/usecase.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/src/etc/demo-unit-test/internal/user/usecase.go -------------------------------------------------------------------------------- /src/etc/demo-unit-test/internal/user/usecase_mock_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/src/etc/demo-unit-test/internal/user/usecase_mock_test.go -------------------------------------------------------------------------------- /src/etc/demo-unit-test/internal/user/usecase_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/src/etc/demo-unit-test/internal/user/usecase_test.go -------------------------------------------------------------------------------- /src/etc/demo-unit-test/pkg/calc/calc.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/src/etc/demo-unit-test/pkg/calc/calc.go -------------------------------------------------------------------------------- /src/etc/demo-unit-test/pkg/calc/calc_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/src/etc/demo-unit-test/pkg/calc/calc_test.go -------------------------------------------------------------------------------- /src/etc/demo-unit-test/usecase_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/src/etc/demo-unit-test/usecase_test.go -------------------------------------------------------------------------------- /src/etc/go-calculator/Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/src/etc/go-calculator/Dockerfile -------------------------------------------------------------------------------- /src/etc/go-calculator/cmd.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/src/etc/go-calculator/cmd.go -------------------------------------------------------------------------------- /src/etc/go-calculator/go.mod: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/src/etc/go-calculator/go.mod -------------------------------------------------------------------------------- /src/etc/go-calculator/go.sum: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/src/etc/go-calculator/go.sum -------------------------------------------------------------------------------- /src/etc/kafka/basic/consumer/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/src/etc/kafka/basic/consumer/main.go -------------------------------------------------------------------------------- /src/etc/kafka/basic/publisher/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/src/etc/kafka/basic/publisher/main.go -------------------------------------------------------------------------------- /src/etc/kafka/docker-compose.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/src/etc/kafka/docker-compose.yml -------------------------------------------------------------------------------- /src/etc/kafka/go.mod: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/src/etc/kafka/go.mod -------------------------------------------------------------------------------- /src/etc/kafka/go.sum: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/src/etc/kafka/go.sum -------------------------------------------------------------------------------- /src/k8s/.gitignore: -------------------------------------------------------------------------------- 1 | charts 2 | .env -------------------------------------------------------------------------------- /src/k8s/demo-flux/apps/base/calculator/canary.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/src/k8s/demo-flux/apps/base/calculator/canary.yaml -------------------------------------------------------------------------------- /src/k8s/demo-flux/apps/base/calculator/configMap.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/src/k8s/demo-flux/apps/base/calculator/configMap.yaml -------------------------------------------------------------------------------- /src/k8s/demo-flux/apps/base/calculator/deployment.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/src/k8s/demo-flux/apps/base/calculator/deployment.yaml -------------------------------------------------------------------------------- /src/k8s/demo-flux/apps/base/calculator/kustomization.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/src/k8s/demo-flux/apps/base/calculator/kustomization.yaml -------------------------------------------------------------------------------- /src/k8s/demo-flux/apps/base/calculator/namespace.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: Namespace 3 | metadata: 4 | name: calculator -------------------------------------------------------------------------------- /src/k8s/demo-flux/apps/base/calculator/service.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/src/k8s/demo-flux/apps/base/calculator/service.yaml -------------------------------------------------------------------------------- /src/k8s/demo-flux/apps/base/calculator/virtualService.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/src/k8s/demo-flux/apps/base/calculator/virtualService.yaml -------------------------------------------------------------------------------- /src/k8s/demo-flux/apps/base/postgresql-core/helmRelease.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/src/k8s/demo-flux/apps/base/postgresql-core/helmRelease.yaml -------------------------------------------------------------------------------- /src/k8s/demo-flux/apps/base/postgresql-core/helmRepository.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/src/k8s/demo-flux/apps/base/postgresql-core/helmRepository.yaml -------------------------------------------------------------------------------- /src/k8s/demo-flux/apps/base/postgresql-core/kustomization.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/src/k8s/demo-flux/apps/base/postgresql-core/kustomization.yaml -------------------------------------------------------------------------------- /src/k8s/demo-flux/apps/base/redis-cache/deployment.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/src/k8s/demo-flux/apps/base/redis-cache/deployment.yaml -------------------------------------------------------------------------------- /src/k8s/demo-flux/apps/base/redis-cache/kustomization.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/src/k8s/demo-flux/apps/base/redis-cache/kustomization.yaml -------------------------------------------------------------------------------- /src/k8s/demo-flux/apps/base/redis-cache/namespace.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: Namespace 3 | metadata: 4 | name: redis-cache -------------------------------------------------------------------------------- /src/k8s/demo-flux/apps/base/redis-cache/service.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/src/k8s/demo-flux/apps/base/redis-cache/service.yaml -------------------------------------------------------------------------------- /src/k8s/demo-flux/apps/overlays/production/calculator/configMap.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/src/k8s/demo-flux/apps/overlays/production/calculator/configMap.yaml -------------------------------------------------------------------------------- /src/k8s/demo-flux/apps/overlays/production/calculator/kustomization.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/src/k8s/demo-flux/apps/overlays/production/calculator/kustomization.yaml -------------------------------------------------------------------------------- /src/k8s/demo-flux/apps/overlays/staging/calculator/configMap.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/src/k8s/demo-flux/apps/overlays/staging/calculator/configMap.yaml -------------------------------------------------------------------------------- /src/k8s/demo-flux/apps/overlays/staging/calculator/kustomization.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/src/k8s/demo-flux/apps/overlays/staging/calculator/kustomization.yaml -------------------------------------------------------------------------------- /src/k8s/demo-flux/clusters/development/apps.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/src/k8s/demo-flux/clusters/development/apps.yaml -------------------------------------------------------------------------------- /src/k8s/demo-flux/clusters/development/flux-system/gotk-components.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/src/k8s/demo-flux/clusters/development/flux-system/gotk-components.yaml -------------------------------------------------------------------------------- /src/k8s/demo-flux/clusters/development/flux-system/gotk-sync.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/src/k8s/demo-flux/clusters/development/flux-system/gotk-sync.yaml -------------------------------------------------------------------------------- /src/k8s/demo-flux/clusters/development/flux-system/kustomization.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/src/k8s/demo-flux/clusters/development/flux-system/kustomization.yaml -------------------------------------------------------------------------------- /src/k8s/demo-flux/clusters/development/infrastructure.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/src/k8s/demo-flux/clusters/development/infrastructure.yaml -------------------------------------------------------------------------------- /src/k8s/demo-flux/clusters/development/sources.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/src/k8s/demo-flux/clusters/development/sources.yaml -------------------------------------------------------------------------------- /src/k8s/demo-flux/clusters/production/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/k8s/demo-flux/clusters/staging/apps.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/src/k8s/demo-flux/clusters/staging/apps.yaml -------------------------------------------------------------------------------- /src/k8s/demo-flux/clusters/staging/flux-system/gotk-components.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/src/k8s/demo-flux/clusters/staging/flux-system/gotk-components.yaml -------------------------------------------------------------------------------- /src/k8s/demo-flux/clusters/staging/flux-system/gotk-sync.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/src/k8s/demo-flux/clusters/staging/flux-system/gotk-sync.yaml -------------------------------------------------------------------------------- /src/k8s/demo-flux/clusters/staging/flux-system/kustomization.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/src/k8s/demo-flux/clusters/staging/flux-system/kustomization.yaml -------------------------------------------------------------------------------- /src/k8s/demo-flux/infrastructure/base/centralized-log/beat.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/src/k8s/demo-flux/infrastructure/base/centralized-log/beat.yaml -------------------------------------------------------------------------------- /src/k8s/demo-flux/infrastructure/base/centralized-log/elasticsearch.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/src/k8s/demo-flux/infrastructure/base/centralized-log/elasticsearch.yaml -------------------------------------------------------------------------------- /src/k8s/demo-flux/infrastructure/base/centralized-log/kibana.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/src/k8s/demo-flux/infrastructure/base/centralized-log/kibana.yaml -------------------------------------------------------------------------------- /src/k8s/demo-flux/infrastructure/base/centralized-log/kustomization.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/src/k8s/demo-flux/infrastructure/base/centralized-log/kustomization.yaml -------------------------------------------------------------------------------- /src/k8s/demo-flux/infrastructure/base/centralized-log/logstash.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/src/k8s/demo-flux/infrastructure/base/centralized-log/logstash.yaml -------------------------------------------------------------------------------- /src/k8s/demo-flux/infrastructure/base/centralized-log/namespace.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: Namespace 3 | metadata: 4 | name: centralized-log -------------------------------------------------------------------------------- /src/k8s/demo-flux/infrastructure/base/datadog/helmRelease.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/src/k8s/demo-flux/infrastructure/base/datadog/helmRelease.yaml -------------------------------------------------------------------------------- /src/k8s/demo-flux/infrastructure/base/datadog/helmRepository.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/src/k8s/demo-flux/infrastructure/base/datadog/helmRepository.yaml -------------------------------------------------------------------------------- /src/k8s/demo-flux/infrastructure/base/datadog/kustomization.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/src/k8s/demo-flux/infrastructure/base/datadog/kustomization.yaml -------------------------------------------------------------------------------- /src/k8s/demo-flux/infrastructure/base/datadog/namespace.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: Namespace 3 | metadata: 4 | name: calculator -------------------------------------------------------------------------------- /src/k8s/demo-flux/infrastructure/base/elastic-system/crds.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/src/k8s/demo-flux/infrastructure/base/elastic-system/crds.yaml -------------------------------------------------------------------------------- /src/k8s/demo-flux/infrastructure/base/elastic-system/kustomization.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/src/k8s/demo-flux/infrastructure/base/elastic-system/kustomization.yaml -------------------------------------------------------------------------------- /src/k8s/demo-flux/infrastructure/base/elastic-system/operator.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/src/k8s/demo-flux/infrastructure/base/elastic-system/operator.yaml -------------------------------------------------------------------------------- /src/k8s/demo-flux/infrastructure/base/flagger/helmRelease.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/src/k8s/demo-flux/infrastructure/base/flagger/helmRelease.yaml -------------------------------------------------------------------------------- /src/k8s/demo-flux/infrastructure/base/flagger/helmRepository.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/src/k8s/demo-flux/infrastructure/base/flagger/helmRepository.yaml -------------------------------------------------------------------------------- /src/k8s/demo-flux/infrastructure/base/flagger/kustomization.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/src/k8s/demo-flux/infrastructure/base/flagger/kustomization.yaml -------------------------------------------------------------------------------- /src/k8s/demo-flux/infrastructure/base/flagger/namespace.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: Namespace 3 | metadata: 4 | name: flagger -------------------------------------------------------------------------------- /src/k8s/demo-flux/infrastructure/base/gloo-system/deployment.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/src/k8s/demo-flux/infrastructure/base/gloo-system/deployment.yaml -------------------------------------------------------------------------------- /src/k8s/demo-flux/infrastructure/base/gloo-system/gateway.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/src/k8s/demo-flux/infrastructure/base/gloo-system/gateway.yaml -------------------------------------------------------------------------------- /src/k8s/demo-flux/infrastructure/base/gloo-system/helmRelease.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/src/k8s/demo-flux/infrastructure/base/gloo-system/helmRelease.yaml -------------------------------------------------------------------------------- /src/k8s/demo-flux/infrastructure/base/gloo-system/helmRepository.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/src/k8s/demo-flux/infrastructure/base/gloo-system/helmRepository.yaml -------------------------------------------------------------------------------- /src/k8s/demo-flux/infrastructure/base/gloo-system/kustomization.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/src/k8s/demo-flux/infrastructure/base/gloo-system/kustomization.yaml -------------------------------------------------------------------------------- /src/k8s/demo-flux/infrastructure/base/gloo-system/namespace.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: Namespace 3 | metadata: 4 | name: gloo-system -------------------------------------------------------------------------------- /src/k8s/demo-flux/infrastructure/base/gloo-system/settings.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/src/k8s/demo-flux/infrastructure/base/gloo-system/settings.yaml -------------------------------------------------------------------------------- /src/k8s/demo-flux/infrastructure/base/gloo-system/upstreams.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/src/k8s/demo-flux/infrastructure/base/gloo-system/upstreams.yaml -------------------------------------------------------------------------------- /src/k8s/demo-flux/infrastructure/base/gloo-system/virtualServices.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/src/k8s/demo-flux/infrastructure/base/gloo-system/virtualServices.yaml -------------------------------------------------------------------------------- /src/k8s/demo-helm/charts/calculator/.helmignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/src/k8s/demo-helm/charts/calculator/.helmignore -------------------------------------------------------------------------------- /src/k8s/demo-helm/charts/calculator/Chart.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/src/k8s/demo-helm/charts/calculator/Chart.yaml -------------------------------------------------------------------------------- /src/k8s/demo-helm/charts/calculator/templates/configmap.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/src/k8s/demo-helm/charts/calculator/templates/configmap.yaml -------------------------------------------------------------------------------- /src/k8s/demo-helm/charts/calculator/templates/deployment.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/src/k8s/demo-helm/charts/calculator/templates/deployment.yaml -------------------------------------------------------------------------------- /src/k8s/demo-helm/charts/calculator/templates/service.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/src/k8s/demo-helm/charts/calculator/templates/service.yaml -------------------------------------------------------------------------------- /src/k8s/demo-helm/charts/calculator/values.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/src/k8s/demo-helm/charts/calculator/values.yaml -------------------------------------------------------------------------------- /src/k8s/demo-kustomization/base/calculator/configMap.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/src/k8s/demo-kustomization/base/calculator/configMap.yaml -------------------------------------------------------------------------------- /src/k8s/demo-kustomization/base/calculator/deployment.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/src/k8s/demo-kustomization/base/calculator/deployment.yaml -------------------------------------------------------------------------------- /src/k8s/demo-kustomization/base/calculator/kustomization.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/src/k8s/demo-kustomization/base/calculator/kustomization.yaml -------------------------------------------------------------------------------- /src/k8s/demo-kustomization/base/calculator/service.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/src/k8s/demo-kustomization/base/calculator/service.yaml -------------------------------------------------------------------------------- /src/k8s/demo-kustomization/base/postgresql-core/helmRelease.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/src/k8s/demo-kustomization/base/postgresql-core/helmRelease.yaml -------------------------------------------------------------------------------- /src/k8s/demo-kustomization/base/postgresql-core/helmRepository.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/src/k8s/demo-kustomization/base/postgresql-core/helmRepository.yaml -------------------------------------------------------------------------------- /src/k8s/demo-kustomization/base/postgresql-core/kustomization.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/src/k8s/demo-kustomization/base/postgresql-core/kustomization.yaml -------------------------------------------------------------------------------- /src/k8s/demo-kustomization/base/redis-cache/kustomization.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/src/k8s/demo-kustomization/base/redis-cache/kustomization.yaml -------------------------------------------------------------------------------- /src/k8s/demo-kustomization/base/redis-cache/values.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/src/k8s/demo-kustomization/base/redis-cache/values.yaml -------------------------------------------------------------------------------- /src/k8s/demo-kustomization/overlays/production/calculator/configMap.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/src/k8s/demo-kustomization/overlays/production/calculator/configMap.yaml -------------------------------------------------------------------------------- /src/k8s/demo-kustomization/overlays/production/calculator/deployment.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/src/k8s/demo-kustomization/overlays/production/calculator/deployment.yaml -------------------------------------------------------------------------------- /src/k8s/demo-kustomization/overlays/production/calculator/kustomization.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/src/k8s/demo-kustomization/overlays/production/calculator/kustomization.yaml -------------------------------------------------------------------------------- /src/k8s/demo-kustomization/overlays/production/redis-cache/kustomization.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/src/k8s/demo-kustomization/overlays/production/redis-cache/kustomization.yaml -------------------------------------------------------------------------------- /src/k8s/demo-kustomization/overlays/production/redis-cache/values.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/src/k8s/demo-kustomization/overlays/production/redis-cache/values.yaml -------------------------------------------------------------------------------- /src/k8s/demo-kustomization/overlays/staging/calculator/configMap.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/src/k8s/demo-kustomization/overlays/staging/calculator/configMap.yaml -------------------------------------------------------------------------------- /src/k8s/demo-kustomization/overlays/staging/calculator/kustomization.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/src/k8s/demo-kustomization/overlays/staging/calculator/kustomization.yaml -------------------------------------------------------------------------------- /src/k8s/demo-kustomization/overlays/staging/redis-cache/kustomization.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syafdia/go-exercise/HEAD/src/k8s/demo-kustomization/overlays/staging/redis-cache/kustomization.yaml --------------------------------------------------------------------------------