Modules§
Structs§
- Const wrapper for
Counter
- Const wrapper for
Gauge
- Const wrapper for
Histogram
- Envoy counter metric handle
- Downstream data reference for a Stream filter
- Envoy gauge metric handle
- Outbound GRPC call
- Builder for
GrpcCall
. - Response type for
GrpcCall::callback
- GRPC Call Handle to cancel a request
- Outbound GRPC stream (bidirectional)
- Builder for
GrpcStream
. - Response type for
GrpcStream::on_close
- GRPC stream handle to cancel, close, or send a message over a GRPC stream.
- Response type for
GrpcStream::on_message
- Envoy histogram metric handle
- Outbound HTTP call
- Builder for
HttpCall
. - Response type for
HttpCall::callback
- Shared Queues in proxy-wasm are a FIFO MPMC queue with no message duplication. Any WASM VM can resolve a queue or register new ones in their own VM ID. Any WASM VM can dequeue data, which will globally dequeue that item. Messages are not replicated to each WASM VM. When broadcasting data to many WASM VMs, it’s advised to have a scheme where each thread can register it’s own inbound queue, then enqueue the name of said queue to the centralized source of data. That source then enqueues to each WASM VM’s queue individually.
- Request header context
- A VM ID local atomic field. Any WASM VM in the same VM ID can read or write to any key in it’s VM ID. SharedData cannot cross VM IDs.
- Context for a stream closing event
- A reference to an upstream cluster. In envoy this is an encoded protobuf. See
Upstream::envoy_upstream
. - Upstream data reference for a Stream filter
Enums§
- Return status for body callbacks
- Return status for header callbacks
- Return status for trailer callbacks
- Error type for GrpcCallBuilder
- Copied from
tonic
crate, GRPC status codes - Error type for GrpcStreamBuilder
- Defines which section the header data belongs too
- Error type for HttpCallBuilder
- Defines if data belongs to a request or response
Traits§
- Defines functions to interact with body data
- Context for a HTTP filter plugin.
- Defines control functions for http data
- Defines functions to interact with header data
- Trait to implement stream filters (L4 filters).
- Defines control functions for streams
- Defines functions to interact with stream data
Functions§
- Calls a foreign function as defined by the proxy.
- Fetches the realtime clock and stores it in a
SystemTime
- Wipes all thread local state, to be used before any initialization in case of VM reuse in native mode
- Sets the log level filter and installs a panic hook to log out panics.
- Sets root context factory. Should be called from _init. Can only be called once.
- Set tick period. Use
Duration::ZERO
to disable ticker.