hiedabke_alisls

package module
v0.0.0-...-c2545e8 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2023 License: MIT Imports: 4 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AliSLSConfig

type AliSLSConfig struct {
	DebugMode       bool
	AccessKeyID     string
	AccessKeySecret string
	Endpoint        string
	Project         string
	Logstore        string
	Topic           string
	Hostname        string
	AppName         string
	SourceIP        string
}

type AliSLSConfigExtend

type AliSLSConfigExtend struct {
	TotalSizeLnBytes      int64
	MaxIoWorkerCount      int64
	MaxBlockSec           int
	MaxBatchSize          int64
	MaxBatchCount         int
	LingerMs              int64
	Retries               int
	MaxReservedAttempts   int
	BaseRetryBackoffMs    int64
	MaxRetryBackoffMs     int64
	AdjustShargHash       bool
	Buckets               int
	AllowLogLevel         string
	LogFileName           string
	IsJsonType            bool
	LogMaxSize            int
	LogMaxBackups         int
	LogCompress           bool
	NoRetryStatusCodeList []int
}

type HiedaBackendAliSLS

type HiedaBackendAliSLS struct {
	// contains filtered or unexported fields
}

func NewHiedaBackendAliSLS

func NewHiedaBackendAliSLS(cfg AliSLSConfig, extraAliSLSConfig *AliSLSConfigExtend) *HiedaBackendAliSLS

func (*HiedaBackendAliSLS) EmitComplexLog

func (b *HiedaBackendAliSLS) EmitComplexLog(module string, level hiedalog.HiedaLogLevel, data map[string]string)

func (*HiedaBackendAliSLS) EmitStringLog

func (b *HiedaBackendAliSLS) EmitStringLog(module string, level hiedalog.HiedaLogLevel, content string)

func (*HiedaBackendAliSLS) SafeStopProducer

func (l *HiedaBackendAliSLS) SafeStopProducer()

func (*HiedaBackendAliSLS) StartProducer

func (l *HiedaBackendAliSLS) StartProducer()

func (*HiedaBackendAliSLS) StopProducer

func (l *HiedaBackendAliSLS) StopProducer(timeout_ms int64) error

Jump to

Keyboard shortcuts

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