Documentation ¶
Overview ¶
This package implements the BeeHive compiler that automatically generates Map functions by inspecting event handlers of applications. This compiler is simplistic and supports a few, common scenarios.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrNoHandler = errors.New("compiler: no handler provided")
)
Functions ¶
Types ¶
type Handler ¶
type Handler struct { Type ast.Expr // Type of the handler. Rcv *ast.FuncDecl // Rcv function of the handler. Cannot be nil. Map *ast.FuncDecl // Map function of the handler. Can be nil. Imports map[string]string // Packages that must be imported for mapping. Package string // Package name of this handler. }
Represents a message handler.
Click to show internal directories.
Click to hide internal directories.