Documentation ¶
Index ¶
Constants ¶
View Source
const ( Email string = "email" SMS string = "sms" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Notification ¶
type Notification struct { weaver.AutoMarshal OrderID string CustomerID string Event string Modes []string }
func (*Notification) WeaverMarshal ¶
func (x *Notification) WeaverMarshal(enc *codegen.Encoder)
func (*Notification) WeaverUnmarshal ¶
func (x *Notification) WeaverUnmarshal(dec *codegen.Decoder)
type Order ¶
type Order struct { weaver.AutoMarshal ID string `json:"order_id,omitempty"` CustomerID string `json:"customer_id,omitempty"` Status string `json:"status,omitempty"` CreatedOn time.Time `json:"created_on,omitempty"` RestaurantId string `json:"restaurant_id,omitempty"` Amount float64 `json:"amount,omitempty"` OrderItems []OrderItem `json:"order_items,omitempty"` }
Order aggregate
func (*Order) WeaverMarshal ¶
func (*Order) WeaverUnmarshal ¶
type OrderItem ¶
type OrderItem struct { weaver.AutoMarshal ProductCode string `json:"code,omitempty"` Name string `json:"name,omitempty"` UnitPrice float64 `json:"unit_price,omitempty"` Quantity int `json:"quantity,omitempty"` }
OrderItem value type
func (*OrderItem) WeaverMarshal ¶
func (*OrderItem) WeaverUnmarshal ¶
type OrderPayment ¶
type OrderPayment struct { weaver.AutoMarshal OrderID string CustomerID string Amount float64 }
func (*OrderPayment) WeaverMarshal ¶
func (x *OrderPayment) WeaverMarshal(enc *codegen.Encoder)
func (*OrderPayment) WeaverUnmarshal ¶
func (x *OrderPayment) WeaverUnmarshal(dec *codegen.Decoder)
Click to show internal directories.
Click to hide internal directories.