Skip to content

Instantly share code, notes, and snippets.

@mgraczyk
Created June 28, 2018 23:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mgraczyk/f66176712b30bb8f7283a25f63663371 to your computer and use it in GitHub Desktop.
Save mgraczyk/f66176712b30bb8f7283a25f63663371 to your computer and use it in GitHub Desktop.
func (state *NodeActor) Receive(ctx actor.Context) {
switch msg := ctx.Message().(type) {
// ... Other cases for starting, stopping
case *messages.QueryRequest:
// ...
case *messages.ApiReceiveTransaction:
// ...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment