Documentation
¶
Index ¶
- type ClickHouseConfig
- type Config
- type KafkaBroker
- type KafkaConfig
- type Plugin
- func (p *Plugin) Config() any
- func (p *Plugin) Handler(next http.Handler) http.Handler
- func (p *Plugin) Init() error
- func (p *Plugin) PostInit() error
- func (p *Plugin) Send(log map[string]any)
- func (p *Plugin) SendBatch(ctx context.Context, entries []map[string]any, _ int) (int, error)
- func (p *Plugin) SendLogs(ctx context.Context, lines []string) error
- func (p *Plugin) StartObserving()
- func (p *Plugin) Stop()
- type SASLConfig
- type SkywalkingConfig
- type TCPConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClickHouseConfig ¶
type Config ¶
type Config struct {
TCP *TCPConfig `json:"tcp,omitempty"`
Skywalking *SkywalkingConfig `json:"skywalking,omitempty"`
Clickhouse *ClickHouseConfig `json:"clickhouse,omitempty"`
Kafka *KafkaConfig `json:"kafka,omitempty"`
Host string `json:"host,omitempty"`
Port int `json:"port,omitempty"`
TLS bool `json:"tls,omitempty"`
TLSServerName string `json:"tls_server_name,omitempty"`
Name string `json:"name,omitempty"`
Level string `json:"level,omitempty"`
Timeout int `json:"timeout,omitempty"`
Keepalive int `json:"keepalive,omitempty"`
BatchMaxSize int `json:"batch_max_size,omitempty"`
MaxRetryCount int `json:"max_retry_count,omitempty"`
RetryDelay int `json:"retry_delay,omitempty"`
BufferDuration int `json:"buffer_duration,omitempty"`
InactiveTimeout int `json:"inactive_timeout,omitempty"`
MaxPendingEntries int `json:"max_pending_entries,omitempty"`
}
type KafkaBroker ¶
type KafkaBroker struct {
Host string `json:"host"`
Port int `json:"port"`
SASLConfig *SASLConfig `json:"sasl_config,omitempty"`
}
type KafkaConfig ¶
type KafkaConfig struct {
Brokers []KafkaBroker `json:"brokers,omitempty"`
KafkaTopic string `json:"kafka_topic"`
ProducerType string `json:"producer_type,omitempty"`
RequiredAcks int `json:"required_acks,omitempty"`
Key string `json:"key,omitempty"`
ClusterName int `json:"cluster_name,omitempty"`
MetaRefreshInterval int `json:"meta_refresh_interval,omitempty"`
}
type Plugin ¶
type Plugin struct {
base.BasePlugin
BatchProcessor *logger_batch.Processor
// contains filtered or unexported fields
}
func (*Plugin) StartObserving ¶
func (p *Plugin) StartObserving()
type SASLConfig ¶
type SkywalkingConfig ¶
Click to show internal directories.
Click to hide internal directories.