Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Add = request.Handler(func(r *AddRequest) (*AddResponse, error) { kernel.Dispatch(&events.LogEvent{Message: "test"}) return &AddResponse{ Sum: r.A + r.B, }, nil })
Functions ¶
This section is empty.
Types ¶
type AddRequest ¶
type AddResponse ¶
type AddResponse struct {
Sum float64 `json:"sum"`
}
Click to show internal directories.
Click to hide internal directories.