Documentation ΒΆ
Overview ΒΆ
Package goapiboilerplate provides Go Server/API boilerplate using best practices, DDD, CQRS, ES.
Directories ΒΆ
Path | Synopsis |
---|---|
cmd
|
|
auth/internal/application
Package application is a layer responsible for driving the workflow of the application, matching the use cases at hand.
|
Package application is a layer responsible for driving the workflow of the application, matching the use cases at hand. |
auth/internal/domain
Package domain is the heart layer of the software, and this is where the interesting stuff happens.
|
Package domain is the heart layer of the software, and this is where the interesting stuff happens. |
auth/internal/domain/client
Package client holds client domain logic Package client holds client domain logic
|
Package client holds client domain logic Package client holds client domain logic |
auth/internal/domain/token
Package token holds token domain logic Package token holds token domain logic
|
Package token holds token domain logic Package token holds token domain logic |
auth/internal/infrastructure
Package infrastructure is a layer that holds everything that interacts with other systems - Secondary/Driven Adapters.
|
Package infrastructure is a layer that holds everything that interacts with other systems - Secondary/Driven Adapters. |
auth/internal/infrastructure/persistence
Package persistence holds view models and repository interfaces Package persistence holds view models and repository interfaces Package persistence holds view models and repository interfaces
|
Package persistence holds view models and repository interfaces Package persistence holds view models and repository interfaces Package persistence holds view models and repository interfaces |
auth/internal/infrastructure/persistence/mysql
Package mysql holds view model repositories Package mysql holds view model repositories Package mysql holds view model repositories Package mysql holds view model repositories Package mysql holds view model repositories Package mysql holds view model repositories
|
Package mysql holds view model repositories Package mysql holds view model repositories Package mysql holds view model repositories Package mysql holds view model repositories Package mysql holds view model repositories Package mysql holds view model repositories |
auth/internal/infrastructure/repository
Package repository holds event sourced repositories Package repository holds event sourced repositories
|
Package repository holds event sourced repositories Package repository holds event sourced repositories |
auth/internal/interfaces
Package interfaces is a layer that holds everything that other systems interacts with - Primary/Driving Adapters.
|
Package interfaces is a layer that holds everything that other systems interacts with - Primary/Driving Adapters. |
auth/internal/interfaces/grpc
Package grpc provides user grpc server
|
Package grpc provides user grpc server |
auth/internal/interfaces/http
Package http provides routes for http router
|
Package http provides routes for http router |
auth/internal/interfaces/http/handlers
Package handlers provides http handlers
|
Package handlers provides http handlers |
user/internal/application
Package application is a layer responsible for driving the workflow of the application, matching the use cases at hand.
|
Package application is a layer responsible for driving the workflow of the application, matching the use cases at hand. |
user/internal/domain
Package domain is the heart layer of the software, and this is where the interesting stuff happens.
|
Package domain is the heart layer of the software, and this is where the interesting stuff happens. |
user/internal/domain/user
Package user holds user domain logic Package user holds user domain logic
|
Package user holds user domain logic Package user holds user domain logic |
user/internal/infrastructure
Package infrastructure is a layer that holds everything that interacts with other systems - Secondary/Driven Adapters.
|
Package infrastructure is a layer that holds everything that interacts with other systems - Secondary/Driven Adapters. |
user/internal/infrastructure/persistence
Package persistence holds view models and repository interfaces
|
Package persistence holds view models and repository interfaces |
user/internal/infrastructure/persistence/mysql
Package mysql holds view model repositories Package mysql holds view model repositories
|
Package mysql holds view model repositories Package mysql holds view model repositories |
user/internal/infrastructure/repository
Package repository holds event sourced repositories
|
Package repository holds event sourced repositories |
user/internal/interfaces
Package interfaces is a layer that holds everything that other systems interacts with - Primary/Driving Adapters.
|
Package interfaces is a layer that holds everything that other systems interacts with - Primary/Driving Adapters. |
user/internal/interfaces/grpc
Package grpc provides user grpc server
|
Package grpc provides user grpc server |
user/internal/interfaces/http
Package http provides routes for http router
|
Package http provides routes for http router |
user/internal/interfaces/http/handlers
Package handlers provides http handlers
|
Package handlers provides http handlers |
pkg
|
|
application
Package errors implements functions to manipulate errors.
|
Package errors implements functions to manipulate errors. |
commandbus
Package commandbus provides interfaces along with helper functions
|
Package commandbus provides interfaces along with helper functions |
domain
Package domain is the heart layer of the software, and this is where the interesting stuff happens.
|
Package domain is the heart layer of the software, and this is where the interesting stuff happens. |
errors
Package errors implements functions to manipulate errors.
|
Package errors implements functions to manipulate errors. |
eventbus
Package eventbus provides interfaces along with helper functions
|
Package eventbus provides interfaces along with helper functions |
eventstore
Package eventstore provides interfaces along with helper functions
|
Package eventstore provides interfaces along with helper functions |
eventstore/dynamodb
Package memory provides dynamodb implementation of domain event store
|
Package memory provides dynamodb implementation of domain event store |
eventstore/memory
Package memory provides memory implementation of domain event store
|
Package memory provides memory implementation of domain event store |
executioncontext
Package executioncontext provides context helper function so set and get execution flags
|
Package executioncontext provides context helper function so set and get execution flags |
http/firewall
Package firewall allow to guard handlers
|
Package firewall allow to guard handlers |
http/middleware
Package middleware provides http middleware
|
Package middleware provides http middleware |
http/middleware/authenticator
Package authenticator provides allows to authorize request
|
Package authenticator provides allows to authorize request |
http/response
Package response provides helpers and utils for working with HTTP response Package response provides helpers and utils for working with HTTP response Package response provides helpers and utils for working with HTTP response
|
Package response provides helpers and utils for working with HTTP response Package response provides helpers and utils for working with HTTP response Package response provides helpers and utils for working with HTTP response |
identity
Package identity provides type that allows to authorize request
|
Package identity provides type that allows to authorize request |
log
Package log provides Logger
|
Package log provides Logger |
Click to show internal directories.
Click to hide internal directories.