Documentation ¶
Index ¶
- Constants
- func Alloc(size int) []byte
- func CopyFile(dst, src string) error
- func Exists(path string) bool
- func Free(buf []byte)
- func GetLogger(name string) *logHandle
- func GetStdLogger(l *logHandle, lvl logrus.Level) *glog.Logger
- func InitLoggers(logToSyslog bool)
- func Min(a, b int) int
- func NewLogger(name string) *logHandle
- func SetLogLevel(lvl logrus.Level)
- func UsedMemory() int64
- type Buffer
- func (b *Buffer) Buffer() []byte
- func (b *Buffer) Bytes() []byte
- func (b *Buffer) Get(l int) []byte
- func (b *Buffer) Get16() uint16
- func (b *Buffer) Get32() uint32
- func (b *Buffer) Get64() uint64
- func (b *Buffer) Get8() uint8
- func (b *Buffer) HasMore() bool
- func (b *Buffer) Left() int
- func (b *Buffer) Len() int
- func (b *Buffer) Put(v []byte)
- func (b *Buffer) Put16(v uint16)
- func (b *Buffer) Put32(v uint32)
- func (b *Buffer) Put64(v uint64)
- func (b *Buffer) Put8(v uint8)
- func (b *Buffer) Seek(p int)
- func (b *Buffer) SetBytes(buf []byte)
- type Compressor
- type Cond
- type LZ4
- type SyslogHook
- type ZStandard
Constants ¶
View Source
const ZSTD_LEVEL = 1 // fastest
Variables ¶
This section is empty.
Functions ¶
func InitLoggers ¶
func InitLoggers(logToSyslog bool)
func SetLogLevel ¶
func UsedMemory ¶ added in v0.9.0
func UsedMemory() int64
Types ¶
type Buffer ¶
type Buffer struct {
// contains filtered or unexported fields
}
func FromBuffer ¶
func NewNativeBuffer ¶
func ReadBuffer ¶
type Compressor ¶ added in v0.9.0
type Compressor interface { Name() string CompressBound(int) int Compress(dst, src []byte) (int, error) Decompress(dst, src []byte) (int, error) }
func NewCompressor ¶ added in v0.9.0
func NewCompressor(algr string) Compressor
type SyslogHook ¶
type SyslogHook struct {
*logrus_syslog.SyslogHook
}
type ZStandard ¶ added in v0.9.0
type ZStandard struct {
// contains filtered or unexported fields
}
func (ZStandard) CompressBound ¶ added in v0.9.0
func (ZStandard) Decompress ¶ added in v0.9.0
Click to show internal directories.
Click to hide internal directories.