common

package
v0.0.0-...-08a6bc4 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ProtocolSLS          = "sls"
	ProtocolPrometheus   = "prometheus"
	ProtocolInflux       = "influx"
	ProtocolInfluxdb     = "influxdb"
	ProtocolStatsd       = "statsd"
	ProtocolOTLPLogV1    = "otlp_logv1"
	ProtocolOTLPMetricV1 = "otlp_metricv1"
	ProtocolOTLPTraceV1  = "otlp_tracev1"
	ProtocolRaw          = "raw"
	ProtocolPyroscope    = "pyroscope"
)

Variables

This section is empty.

Functions

func CollectBody

func CollectBody(res http.ResponseWriter, req *http.Request, maxBodySize int64) ([]byte, int, error)

func CollectRawBody

func CollectRawBody(res http.ResponseWriter, req *http.Request, maxBodySize int64) ([]byte, int, error)

func GetPooledBuf

func GetPooledBuf() *bytes.Buffer

func PutPooledBuf

func PutPooledBuf(buf *bytes.Buffer)

Types

This section is empty.

Jump to

Keyboard shortcuts

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