Skip to content

Instantly share code, notes, and snippets.

@aschmidt75
Created April 12, 2019 13:30
Show Gist options
  • Select an option

  • Save aschmidt75/aac70664705facf3b2014b8d09cf14ae to your computer and use it in GitHub Desktop.

Select an option

Save aschmidt75/aac70664705facf3b2014b8d09cf14ae to your computer and use it in GitHub Desktop.
type submitShipmentInvocation struct {
// input argument
arg submitShipmentArg
// intermediates
shipperKey, fromKey, toKey string
submittedAtParsed time.Time
// result
res submitShipmentResult
}
// creates a new shipment structure from given Ids of shipper and Participants.
type submitShipmentArg struct {
Shipper string `json:"by"`
From string `json:"from"`
To string `json:"to"`
SubmittedAt string `json:"submittedAt"`
}
// Returns ID of shipment
type submitShipmentResult struct {
ID string `json:"id"`
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment