Documentation ¶
Index ¶
- Constants
- func DeserializeMap(bs []byte) [][2]string
- func RawBytePtrToByteSlice(raw *byte, size int) []byte
- func RawBytePtrToString(raw *byte, size int) string
- func RegisterHttpCallout(calloutID uint32, callback func(numHeaders, bodySize, numTrailers int))
- func SerializeMap(ms [][2]string) []byte
- func SerializePropertyPath(path []string) []byte
- func SetVMContext(vmContext types.VMContext)
- func StatusToError(status Status) error
- func StringBytePtr(msg string) *byte
- type BufferType
- type LogLevel
- type MapType
- type MetricType
- type Status
- func ProxyAddHeaderMapValue(mapType MapType, keyData *byte, keySize int, valueData *byte, valueSize int) Status
- func ProxyCallForeignFunction(funcNamePtr *byte, funcNameSize int, paramPtr *byte, paramSize int, ...) Status
- func ProxyCloseStream(streamType StreamType) Status
- func ProxyContinueStream(streamType StreamType) Status
- func ProxyDefineMetric(metricType MetricType, metricNameData *byte, metricNameSize int, ...) Status
- func ProxyDequeueSharedQueue(queueID uint32, returnValueData **byte, returnValueSize *int) Status
- func ProxyDone() Status
- func ProxyEnqueueSharedQueue(queueID uint32, valueData *byte, valueSize int) Status
- func ProxyGetBufferBytes(bufferType BufferType, start int, maxSize int, returnBufferData **byte, ...) Status
- func ProxyGetHeaderMapPairs(mapType MapType, returnValueData **byte, returnValueSize *int) Status
- func ProxyGetHeaderMapValue(mapType MapType, keyData *byte, keySize int, returnValueData **byte, ...) Status
- func ProxyGetMetric(metricID uint32, returnMetricValue *uint64) Status
- func ProxyGetProperty(pathData *byte, pathSize int, returnValueData **byte, returnValueSize *int) Status
- func ProxyGetSharedData(keyData *byte, keySize int, returnValueData **byte, returnValueSize *int, ...) Status
- func ProxyHttpCall(upstreamData *byte, upstreamSize int, headerData *byte, headerSize int, ...) Status
- func ProxyIncrementMetric(metricID uint32, offset int64) Status
- func ProxyLog(logLevel LogLevel, messageData *byte, messageSize int) Status
- func ProxyRecordMetric(metricID uint32, value uint64) Status
- func ProxyRegisterSharedQueue(nameData *byte, nameSize int, returnID *uint32) Status
- func ProxyRemoveHeaderMapValue(mapType MapType, keyData *byte, keySize int) Status
- func ProxyReplaceHeaderMapValue(mapType MapType, keyData *byte, keySize int, valueData *byte, valueSize int) Status
- func ProxyResolveSharedQueue(vmIDData *byte, vmIDSize int, nameData *byte, nameSize int, returnID *uint32) Status
- func ProxySendLocalResponse(statusCode uint32, statusCodeDetailData *byte, statusCodeDetailsSize int, ...) Status
- func ProxySetBufferBytes(bufferType BufferType, start int, maxSize int, bufferData *byte, ...) Status
- func ProxySetEffectiveContext(contextID uint32) Status
- func ProxySetHeaderMapPairs(mapType MapType, mapData *byte, mapSize int) Status
- func ProxySetProperty(pathData *byte, pathSize int, valueData *byte, valueSize int) Status
- func ProxySetSharedData(keyData *byte, keySize int, valueData *byte, valueSize int, cas uint32) Status
- func ProxySetTickPeriodMilliseconds(period uint32) Status
- type StreamType
Constants ¶
View Source
const ( MetricTypeCounter = 0 MetricTypeGauge = 1 MetricTypeHistogram = 2 )
Variables ¶
This section is empty.
Functions ¶
func DeserializeMap ¶
func RawBytePtrToByteSlice ¶
func RawBytePtrToString ¶
func RegisterHttpCallout ¶
func SerializeMap ¶
func SerializePropertyPath ¶
func SetVMContext ¶ added in v0.13.0
func StatusToError ¶
func StringBytePtr ¶
Types ¶
type BufferType ¶
type BufferType uint32
const ( BufferTypeHttpRequestBody BufferType = 0 BufferTypeHttpResponseBody BufferType = 1 BufferTypeDownstreamData BufferType = 2 BufferTypeUpstreamData BufferType = 3 BufferTypeHttpCallResponseBody BufferType = 4 BufferTypeGrpcReceiveBuffer BufferType = 5 BufferTypeVMConfiguration BufferType = 6 BufferTypePluginConfiguration BufferType = 7 BufferTypeCallData BufferType = 8 )
type MetricType ¶
type MetricType uint32
type Status ¶
type Status uint32
func ProxyAddHeaderMapValue ¶
func ProxyCloseStream ¶
func ProxyCloseStream(streamType StreamType) Status
func ProxyContinueStream ¶
func ProxyContinueStream(streamType StreamType) Status
func ProxyDefineMetric ¶
func ProxyDefineMetric(metricType MetricType, metricNameData *byte, metricNameSize int, returnMetricIDPtr *uint32) Status
func ProxyDequeueSharedQueue ¶
func ProxyEnqueueSharedQueue ¶
func ProxyGetBufferBytes ¶
func ProxyGetHeaderMapPairs ¶
func ProxyGetHeaderMapValue ¶
func ProxyGetMetric ¶
func ProxyGetProperty ¶
func ProxyGetSharedData ¶
func ProxyHttpCall ¶
func ProxyIncrementMetric ¶
func ProxyRecordMetric ¶
func ProxyResolveSharedQueue ¶
func ProxySendLocalResponse ¶
func ProxySetBufferBytes ¶
func ProxySetHeaderMapPairs ¶
func ProxySetProperty ¶
func ProxySetSharedData ¶
type StreamType ¶
type StreamType uint32
const ( StreamTypeRequest StreamType = 0 StreamTypeResponse StreamType = 1 StreamTypeDownstream StreamType = 2 StreamTypeUpstream StreamType = 3 )
Source Files ¶
Click to show internal directories.
Click to hide internal directories.