Created
April 12, 2019 13:45
-
-
Save aschmidt75/b387b5c9deda8ca88234e6e1d556e464 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
| cc := &PreciousCargoChaincode{ | |
| // all functions as InvocationHandlers | |
| handlers: map[string]reflect.Type{ | |
| "submitShipment": reflect.TypeOf((*submitShipmentInvocation)(nil)).Elem(), | |
| "getShipment": reflect.TypeOf((*getShipmentInvocation)(nil)).Elem(), | |
| "registerIndividualParticipant": reflect.TypeOf((*registerIndividualParticipantInvocation)(nil)).Elem(), | |
| "getIndividualParticipant": reflect.TypeOf((*getIndividualParticipantInvocation)(nil)).Elem(), | |
| "registerShipmentCo": reflect.TypeOf((*registerShipmentCoInvocation)(nil)).Elem(), | |
| }, | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment