Skip to content

Instantly share code, notes, and snippets.

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

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

Select an option

Save aschmidt75/b387b5c9deda8ca88234e6e1d556e464 to your computer and use it in GitHub Desktop.
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