Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommandController ¶
type CommandController struct {
// contains filtered or unexported fields
}
func NewCommandController ¶
func NewCommandController( r app.OrderStore, e event.Publisher, timeout time.Duration, ) (CommandController, error)
type OrderQueryController ¶
type OrderQueryController struct {
// contains filtered or unexported fields
}
func NewQueryController ¶
func NewQueryController(s QueryService) OrderQueryController
type QueryService ¶
type QueryService interface { GetOrders(ctx context.Context) *query.GetOrdersDto GetOrder(ctx context.Context, id string) *query.GetOrderDto }
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func NewServer ¶
func NewServer(cfg Config, e *echo.Echo, cmdCtrl CommandController, queryCtrl OrderQueryController, ) *Server
Click to show internal directories.
Click to hide internal directories.