Skip to content

Instantly share code, notes, and snippets.

@soheilhy
Last active August 29, 2015 14:25
Show Gist options
  • Save soheilhy/7dd0ea54dab433b9bc8c to your computer and use it in GitHub Desktop.
Save soheilhy/7dd0ea54dab433b9bc8c to your computer and use it in GitHub Desktop.
Skeleton of EnQHandler
import (
"github.com/kandoo/beehive"
)
// EnQHandler handles Enque messages.
type EnQHandler struct{}
func (h EnQHandler) Rcv(msg beehive.Msg, ctx beehive.RcvContext) error {...}
func (h EnQHandler) Map(msg beehive.Msg, ctx beehive.MapContext) beehive.MappedCells {...}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment