Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Address ¶
type Address struct { AddressType string `json:"addressType" bson:"addressType"` Street string `json:"street" bson:"street"` City string `json:"city" bson:"city"` State string `json:"state" bson:"state"` PinCode uint16 `json:"pinCode" bson:"pinCode"` Country string `json:"country" bson:"country"` }
Address holds the user address informaton
type Carrier ¶
type Carrier struct { ID interface{} `json:"id" bson:"_id,omitempty"` Name string `json:"name" bson:"name"` CarrierCode int32 `json:"carrier_code" bson:"carrier_code"` IsPartner bool `json:"is_partner" bson:"is_partner"` }
Carrier holds the carrier information
type DB ¶
type DB struct {
// contains filtered or unexported fields
}
DB holds the mongo db driver collection
type Package ¶
type Package struct { ID interface{} `json:"id" bson:"_id,omitempty"` Dimensions packageDimension `json:"dimensions" bson:"dimensions"` Weight uint32 `json:"weight" bson:"weight"` IsDamaged bool `json:"is_damaged" bson:"is_damaged"` Status string `json:"status" bson:"status"` }
Package holds the information about the object
type Payment ¶
type Payment struct { ID interface{} `json:"id" bson:"_id,omitempty"` InitiatedOn time.Time `json:"initiated_on" bson:"initiated_on"` SuccessfulOn time.Time `json:"successful_on" bson:"successful_on"` MerchantID interface{} `json:"merchant_id" bson:"merchant_id"` ModeOfPayment string `json:"mode_of_payment" bson:"mode_of_payment"` PaymentDetails paymentDetails `json:"payment_details" bson:"payment_details"` }
Payment holds the information related to the receiver
type Receiver ¶
type Receiver struct { ID interface{} `json:"id" bson:"_id,omitempty"` FirstName string `json:"first_name" bson:"first_name"` LastName string `json:"last_name" bson:"last_name"` Address Address `json:"address" bson:"address"` Phone string `json:"phone" bson:"phone"` }
Receiver holds the user who received the shipment information
type Sender ¶
type Sender struct { ID interface{} `json:"id" bson:"_id,omitempty"` FirstName string `json:"first_name" bson:"first_name"` LastName string `json:"last_name" bson:"last_name"` Address Address `json:"address" bson:"address"` Phone string `json:"phone" bson:"phone"` }
Sender holds the user who sell the goods information
type Shipment ¶
type Shipment struct { ID interface{} `json:"id" bson:"_id,omitempty"` Sender interface{} `json:"sender" bson:"sender"` Receiver interface{} `json:"receiver" bson:"receiver"` Package interface{} `json:"package" bson:"package"` Payment interface{} `json:"payment" bson:"payment"` Carrier interface{} `json:"carrier" bson:"carrier"` PromisedOn time.Time `json:"promised_on" bson:"promised_on"` }
Shipment holds all the information about the shipment and the logistics
Click to show internal directories.
Click to hide internal directories.