Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppChannel ¶
type AppChannel interface {
InvokeMethod(req *InvokeRequest) (*InvokeResponse, error)
}
AppChannel is an abstraction over communications with user code
type InvokeRequest ¶
type InvokeRequest struct {
Method string `json:"method"`
Payload []byte `json:"payload"`
Metadata map[string]string `json:"metadata"`
}
InvokeRequest is the request object for invoking a user code method
type InvokeResponse ¶
type InvokeResponse struct {
Data []byte `json:"data"`
Metadata map[string]string `json:"metadata"`
}
InvokeResponse is the response object from invoking user code
Click to show internal directories.
Click to hide internal directories.