Documentation ¶
Index ¶
Constants ¶
View Source
const ( // COMPRESSNONE No compression COMPRESSNONE = 1 + iota // COMPRESSGZIP GZIP compression for GELF COMPRESSGZIP // COMPRESSZLIB ZLIB compression for GELF COMPRESSZLIB // COMPRESSPACKNPPACKED compression for cap'n proto COMPRESSPACKNPPACKED // COMPRESSDEFLATE DEFLATE compression for GELF COMPRESSDEFLATE )
View Source
const ( // UDP_CHUNK_MAX_SIZE_FRAG max chunk size (fragmented) UDP_CHUNK_MAX_SIZE_FRAG = 8192 //UDP_CHUNK_MAX_SIZE = 8164 // 8192 - (IP header) - (UDP header) //UDP_CHUNK_MAX_DATA_SIZE = 8144 // UDP_CHUNK_MAX_SIZE - ( 2 + 8 + 1 + 1) //UDP_CHUNK_MAX_SIZE = 1420 // UDP_CHUNK_MAX_SIZE chunk max size UDP_CHUNK_MAX_SIZE = 1420 // UDP_CHUNK_MAX_DATA_SIZE chunk data max size UDP_CHUNK_MAX_DATA_SIZE = 1348 // UDP_CHUNK_MAX_SIZE - ( 2 + 8 + 1 + 1) )
Variables ¶
View Source
var Endpoint string
Endpoint OVH logs endpoint
View Source
var ( // GELF_CHUNK_MAGIC_BYTES "magic bytes" for GELF chunk headers GELF_CHUNK_MAGIC_BYTES = []byte{0x1e, 0x0f} )
Functions ¶
This section is empty.
Types ¶
type CompressAlgo ¶
type CompressAlgo uint8
CompressAlgo the compression algorithm used
func (CompressAlgo) String ¶
func (c CompressAlgo) String() string
type Entry ¶
type Entry struct {
// contains filtered or unexported fields
}
Entry represent the base entry
type OvhHook ¶
type OvhHook struct {
// contains filtered or unexported fields
}
OvhHook represents an OVH PAAS Log
func NewAsyncOvhHook ¶
NewAsyncOvhHook returns a async hook
func NewOvhHook ¶
NewOvhHook returns a sync Hook
func (*OvhHook) SetCompression ¶
func (hook *OvhHook) SetCompression(algo CompressAlgo) error
SetCompression set compression algorithm
Click to show internal directories.
Click to hide internal directories.