rawhostcall

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: May 28, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

README

The collection of raw functions implemented in proxy-wasm host environments.

With // +build proxytest tag, you can insert mock host environment that emulates the host environment during unittests.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ProxyAddHeaderMapValue

func ProxyAddHeaderMapValue(mapType types.MapType, keyData *byte, keySize int, valueData *byte, valueSize int) types.Status

func ProxyCallForeignFunction added in v0.2.0

func ProxyCallForeignFunction(funcNamePtr *byte, funcNameSize int, paramPtr *byte, paramSize int, returnData **byte, returnSize *int) types.Status

func ProxyCloseStream

func ProxyCloseStream(streamType types.StreamType) types.Status

func ProxyContinueStream

func ProxyContinueStream(streamType types.StreamType) types.Status

func ProxyDefineMetric

func ProxyDefineMetric(metricType types.MetricType, metricNameData *byte, metricNameSize int, returnMetricIDPtr *uint32) types.Status

func ProxyDequeueSharedQueue

func ProxyDequeueSharedQueue(queueID uint32, returnValueData **byte, returnValueSize *int) types.Status

func ProxyDone

func ProxyDone() types.Status

func ProxyEnqueueSharedQueue

func ProxyEnqueueSharedQueue(queueID uint32, valueData *byte, valueSize int) types.Status

func ProxyGetBufferBytes

func ProxyGetBufferBytes(bt types.BufferType, start int, maxSize int, returnBufferData **byte, returnBufferSize *int) types.Status

func ProxyGetHeaderMapPairs

func ProxyGetHeaderMapPairs(mapType types.MapType, returnValueData **byte, returnValueSize *int) types.Status

func ProxyGetHeaderMapValue

func ProxyGetHeaderMapValue(mapType types.MapType, keyData *byte, keySize int, returnValueData **byte, returnValueSize *int) types.Status

func ProxyGetMetric

func ProxyGetMetric(metricID uint32, returnMetricValue *uint64) types.Status

func ProxyGetProperty added in v0.0.3

func ProxyGetProperty(pathData *byte, pathSize int, returnValueData **byte, returnValueSize *int) types.Status

func ProxyGetSharedData

func ProxyGetSharedData(keyData *byte, keySize int, returnValueData **byte, returnValueSize *int, returnCas *uint32) types.Status

func ProxyHttpCall

func ProxyHttpCall(upstreamData *byte, upstreamSize int, headerData *byte, headerSize int,
	bodyData *byte, bodySize int, trailersData *byte, trailersSize int, timeout uint32, calloutIDPtr *uint32,
) types.Status

func ProxyIncrementMetric

func ProxyIncrementMetric(metricID uint32, offset int64) types.Status

func ProxyLog

func ProxyLog(logLevel types.LogLevel, messageData *byte, messageSize int) types.Status

func ProxyRecordMetric

func ProxyRecordMetric(metricID uint32, value uint64) types.Status

func ProxyRegisterSharedQueue

func ProxyRegisterSharedQueue(nameData *byte, nameSize int, returnID *uint32) types.Status

func ProxyRemoveHeaderMapValue

func ProxyRemoveHeaderMapValue(mapType types.MapType, keyData *byte, keySize int) types.Status

func ProxyReplaceHeaderMapValue

func ProxyReplaceHeaderMapValue(mapType types.MapType, keyData *byte, keySize int, valueData *byte, valueSize int) types.Status

func ProxyResolveSharedQueue

func ProxyResolveSharedQueue(vmIDData *byte, vmIDSize int, nameData *byte, nameSize int, returnID *uint32) types.Status

func ProxySendLocalResponse

func ProxySendLocalResponse(statusCode uint32, statusCodeDetailData *byte, statusCodeDetailsSize int,
	bodyData *byte, bodySize int, headersData *byte, headersSize int, grpcStatus int32) types.Status

func ProxySetBufferBytes added in v0.0.9

func ProxySetBufferBytes(bt types.BufferType, start int, maxSize int, bufferData *byte, bufferSize int) types.Status

func ProxySetEffectiveContext

func ProxySetEffectiveContext(contextID uint32) types.Status

func ProxySetHeaderMapPairs

func ProxySetHeaderMapPairs(mapType types.MapType, mapData *byte, mapSize int) types.Status

func ProxySetProperty added in v0.0.3

func ProxySetProperty(pathData *byte, pathSize int, valueData *byte, valueSize int) types.Status

func ProxySetSharedData

func ProxySetSharedData(keyData *byte, keySize int, valueData *byte, valueSize int, cas uint32) types.Status

func ProxySetTickPeriodMilliseconds

func ProxySetTickPeriodMilliseconds(period uint32) types.Status

Types

This section is empty.

Jump to

Keyboard shortcuts

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