Created
April 12, 2019 13:30
-
-
Save aschmidt75/aac70664705facf3b2014b8d09cf14ae to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| type submitShipmentInvocation struct { | |
| // input argument | |
| arg submitShipmentArg | |
| // intermediates | |
| shipperKey, fromKey, toKey string | |
| submittedAtParsed time.Time | |
| // result | |
| res submitShipmentResult | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // 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