common

package
v0.3.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractEnrichTags

func ExtractEnrichTags(req *http.Request) (tag.Tags, error)

ExtractEnrichTags extracts enriched tags from url query query: enriched_tag=host=test&enriched_tag=ip=1.1.1.1&enriched_tag=zone=bj extracted_tags: host:test, ip:1.1.1.1, zone=bj

func GetGzipReader

func GetGzipReader(r io.Reader) (*gzip.Reader, error)

GetGzipReader picks a cached reader from the pool

func NewBufioReader

func NewBufioReader(r io.Reader) (reader *bufio.Reader, releaseFn func(bufioReader *bufio.Reader))

NewBufioReader returns a buf io reader with 64KB cache

func PutGzipReader

func PutGzipReader(gzipReader *gzip.Reader)

PutGzipReader puts the gzipReader back to the pool

Types

This section is empty.

Jump to

Keyboard shortcuts

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