types

package
v0.1.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 10, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package types stores common types shared between services.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Order

type Order struct {
	weaver.AutoMarshal
	OrderID            string
	ShippingTrackingID string
	ShippingCost       money.T
	ShippingAddress    shippingservice.Address
	Items              []OrderItem
}

Order represents a user order.

func (*Order) WeaverMarshal

func (x *Order) WeaverMarshal(enc *codegen.Encoder)

func (*Order) WeaverUnmarshal

func (x *Order) WeaverUnmarshal(dec *codegen.Decoder)

type OrderItem

type OrderItem struct {
	weaver.AutoMarshal
	Item cartservice.CartItem
	Cost money.T
}

func (*OrderItem) WeaverMarshal

func (x *OrderItem) WeaverMarshal(enc *codegen.Encoder)

func (*OrderItem) WeaverUnmarshal

func (x *OrderItem) WeaverUnmarshal(dec *codegen.Decoder)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL