actrs

package
v0.0.0-...-8396750 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 14, 2024 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const KindMetric = "runtime_metric"
View Source
const KindRuntime = "runtime"
View Source
const KindRuntimeLog = "runtime_log"
View Source
const KindRuntimeManager = "runtime_manager"
View Source
const KindWasmServer = "wasm_server"

Variables

This section is empty.

Functions

func NewMetric

func NewMetric() actor.Receiver

func NewRuntime

func NewRuntime(store storage.Store, cache storage.ModCacher) actor.Producer

func NewRuntimeLog

func NewRuntimeLog() actor.Receiver

func NewRuntimeManager

func NewRuntimeManager(c *cluster.Cluster) actor.Producer

func NewWasmServer

func NewWasmServer(addr string, cluster *cluster.Cluster, store storage.Store, metricStore storage.MetricStore, cache storage.ModCacher) actor.Producer

NewWasmServer return a new wasm server given a storage and a mod cache.

Types

type Metric

type Metric struct{}

func (*Metric) Receive

func (m *Metric) Receive(c *actor.Context)

TODO: Store metrics where they belong

type Runtime

type Runtime struct {
	// contains filtered or unexported fields
}

Runtime is an actor that can execute compiled WASM blobs in a distributed cluster.

func (*Runtime) Receive

func (r *Runtime) Receive(c *actor.Context)

type RuntimeLog

type RuntimeLog struct{}

func (*RuntimeLog) Receive

func (rl *RuntimeLog) Receive(c *actor.Context)

type RuntimeManager

type RuntimeManager struct {
	// contains filtered or unexported fields
}

RuntimeManager is an actor/receiver that is responsible for managing runtimes across the cluster.

func (*RuntimeManager) Receive

func (rm *RuntimeManager) Receive(c *actor.Context)

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)

TODO(anthdm): Handle the favicon.ico

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL