# Packages

# Functions

AddHttpRequestHeader adds a value for given "key" to the request headers.
AddHttpRequestTrailer adds a value for given "key" to the request trailers.
AddHttpResponseHeader adds a value for a given "key" to the response headers.
AddHttpResponseTrailer adds a value for given "key" to the response trailers.
AppendDownstreamData appends the given bytes to the downstream TCP data buffered in the host.
AppendHttpRequestBody appends the given bytes to the HTTP request body buffer.
AppendHttpResponseBody appends the given bytes to the HTTP response body buffer.
AppendUpstreamData appends the given bytes to the upstream TCP data buffered in the host.
CallForeignFunction calls a foreign function of given funcName defined by host implementations.
CloseDownstream closes the downstream TCP connection for this Tcp context.
CloseUpstream closes the upstream TCP connection for this Tcp context.
ContinueTcpStream continues interating on the TCP connection after types.Action.Pause was returned by types.TcpContext.
DefineCounterMetric returns MetricCounter for a name.
DefineCounterMetric returns MetricGauge for a name.
DefineHistogramMetric returns MetricHistogram for a name.
DequeueSharedQueue dequeues data from the shared queue of the given queueID.
DispatchHttpCall is for dispatching HTTP calls to a remote cluster.
EnqueueSharedQueue enqueues data to the shared queue of the given queueID.
GetDownstreamData can be used for retrieving TCP downstream data buffered in the host.
GetHttpCallResponseBody is used for retrieving HTTP response body returned by a remote cluster in response to the DispatchHttpCall.
GetHttpCallResponseHeaders is used for retrieving HTTP response headers returned by a remote cluster in response to the DispatchHttpCall.
GetHttpCallResponseTrailers is used for retrieving HTTP response trailers returned by a remote cluster in response to the DispatchHttpCall.
GetHttpRequestBody is used for retrieving the entire HTTP request body.
GetHttpRequestHeader is used for retrieving an HTTP request header value for given "key".
GetHttpRequestHeaders is used for retrieving HTTP request headers.
GetHttpRequestTrailer is used for retrieving HTTP request trailer value for given "key".
GetHttpRequestTrailers is used for retrieving HTTP request trailers.
GetHttpResponseBody is used for retrieving the entire HTTP response body.
GetHttpResponseHeader is used for retrieving an HTTP response header value for a given "key".
GetHttpResponseHeaders is used for retrieving HTTP response headers.
GetHttpResponseTrailer is used for retrieving an HTTP response trailer value for a given "key".
GetHttpResponseTrailers is used for retrieving HTTP response trailers.
GetPluginConfiguration is used for retrieving configurations given in the "config.configuration" field.
GetProperty is used for retrieving property/metadata in the host for a given path.
GetPropertyMap is the same as GetProperty but can be used to decode map-typed properties.
GetSharedData is used for retrieving the value for given "key".
GetUpstreamData can be used for retrieving upstream TCP data buffered in the host.
GetVMConfiguration is used for retrieving configurations given in the "vm_config.configuration" field.
LogCritical emits a message as a log with Critical log level.
LogCriticalf formats according to a format specifier and emits as a log with Critical log level.
LogDebug emits a message as a log with Debug log level.
LogDebugf formats according to a format specifier and emits as a log with Debug log level.
LogError emits a message as a log with Error log level.
LogErrorf formats according to a format specifier and emits as a log with Error log level.
LogInfo emits a message as a log with Info log level.
LogInfof formats according to a format specifier and emits as a log with Info log level.
LogTrace emits a message as a log with Trace log level.
LogTracef formats according to a format specifier and emits as a log with Trace log level.
LogWarn emits a message as a log with Warn log level.
LogWarnf formats according to a format specifier and emits as a log with Warn log level.
PluginDone must be called when OnPluginDone returns false indicating that the plugin is in pending state right before deletion by the hosts.
PrependDownstreamData prepends the given bytes to the downstream TCP data buffered in the host.
PrependHttpRequestBody prepends the given bytes to the HTTP request body buffer.
PrependHttpResponseBody prepends the given bytes to the HTTP response body buffer.
PrependUpstreamData prepends the given bytes to the upstream TCP data buffered in the host.
RegisterSharedQueue registers the shared queue on this plugin context.
RemoveHttpRequestHeader is used for removing an HTTP request header with a given "key".
RemoveHttpRequestTrailer removes all values for given "key" from the request trailers.
RemoveHttpResponseHeader removes all values for given "key" from the response headers.
RemoveHttpResponseTrailer removes all values for given "key" from the response trailers.
ReplaceDownstreamData replaces the downstream TCP data buffered in the host with the given bytes.
ReplaceHttpRequestBody replaces the HTTP request body buffer with the given bytes.
ReplaceHttpRequestHeader replaces a value for given "key" from request headers.
ReplaceHttpRequestHeaders is used for replacing HTTP request headers with given headers.
ReplaceHttpRequestTrailer replaces a value for given "key" from the request trailers.
ReplaceHttpRequestTrailers is used for replacing HTTP request trailers with given trailers.
ReplaceHttpResponseBody replaces the http response body buffer with the given bytes.
ReplaceHttpResponseHeader replaces the value for given "key" from the response headers.
ReplaceHttpResponseHeaders is used for replacing HTTP response headers with given headers.
ReplaceHttpResponseTrailer replaces a value for given "key" from the response trailers.
ReplaceHttpResponseTrailers is used for replacing HTTP response trailers with given trailers.
ReplaceUpstreamData replaces the upstream TCP data buffered in the host with the given bytes.
ResolveSharedQueue acquires the queueID for the given vmID and queueName.
ResumeHttpRequest can be used for resuming HTTP request processing that was stopped after returning the types.Action.Pause.
ResumeHttpResponse can be used to resume the HTTP response processing that was stopped after returning types.Action.Pause.
SendHttpResponse sends an HTTP response to the downstream with given information (headers, statusCode, body).
SetEffectiveContext sets the effective context to "context_id".
SetProperty is used for setting property/metadata in the host for a given path.
SetSharedData is used for setting key-value pairs in the shared data storage which is defined per "vm_config.vm_id" in the hosts.
SetTickPeriodMilliSeconds sets the tick interval of types.PluginContext.OnTick calls.
SetVMContext is the entrypoint for setting up the entire Wasm VM.

# Type aliases