Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CalculateWasmEncoderID ¶
CalculateWasmEncoderID - Creates an Encoder ID based on the hash of the wasm bin
Types ¶
type TrafficEncoder ¶
type TrafficEncoder struct {
// contains filtered or unexported fields
}
TrafficEncoder - Implements the `Encoder` interface using a wasm backend
func CreateTrafficEncoder ¶
func CreateTrafficEncoder(name string, wasm []byte, logger TrafficEncoderLogCallback) (*TrafficEncoder, error)
CreateTrafficEncoder - Initialize an WASM runtime using the provided module name, code, and log callback
func (*TrafficEncoder) Close ¶
func (t *TrafficEncoder) Close() error
type TrafficEncoderLogCallback ¶
type TrafficEncoderLogCallback func(string)
TrafficEncoderLogCallback - Callback function exposed to the wasm runtime to log messages
Click to show internal directories.
Click to hide internal directories.