Created
June 28, 2018 23:16
-
-
Save mgraczyk/f66176712b30bb8f7283a25f63663371 to your computer and use it in GitHub Desktop.
This file contains 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
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