Documentation ¶
Index ¶
Constants ¶
View Source
const KindRuntime = "runtime"
View Source
const KindWasmServer = "wasm_server"
Variables ¶
This section is empty.
Functions ¶
func NewRuntime ¶
Types ¶
type RequestModule ¶
type RequestModule struct {
// contains filtered or unexported fields
}
func NewRequestModule ¶
func NewRequestModule(req *proto.HTTPRequest) (*RequestModule, error)
func (*RequestModule) Instantiate ¶
func (*RequestModule) WriteResponse ¶
func (r *RequestModule) WriteResponse(w io.Writer) (int, error)
type Runtime ¶
type Runtime struct {
// contains filtered or unexported fields
}
Runtime is an actor that can execute compiled WASM blobs in a distributed cluster.
type WasmServer ¶
type WasmServer struct {
// contains filtered or unexported fields
}
WasmServer is an HTTP server that will proxy and route the request to the corresponding function.
func (*WasmServer) Receive ¶
func (s *WasmServer) Receive(c *actor.Context)
func (*WasmServer) ServeHTTP ¶
func (s *WasmServer) ServeHTTP(w http.ResponseWriter, r *http.Request)
Click to show internal directories.
Click to hide internal directories.