Documentation
¶
Index ¶
- func CreateLogByFields(fields map[string]string) *protocol.Log
- func CreateLogs(kvs ...string) *protocol.Log
- func GetTestConfig(configName string) string
- func LoadDefaultConfig() *pluginmanager.LogstoreConfig
- func LoadMockConfig(project, logstore, configName, jsonStr string) *pluginmanager.LogstoreConfig
- func PluginStart() error
- func PluginStop(forceFlushFlag bool) error
- type MockCollector
- type MockLog
- type MockMetricCollector
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateLogs ¶
func GetTestConfig ¶
func LoadDefaultConfig ¶
func LoadDefaultConfig() *pluginmanager.LogstoreConfig
func LoadMockConfig ¶
func LoadMockConfig(project, logstore, configName, jsonStr string) *pluginmanager.LogstoreConfig
project, logstore, config, jsonStr
func PluginStart ¶
func PluginStart() error
func PluginStop ¶
Types ¶
type MockCollector ¶
func (*MockCollector) AddDataArray ¶
func (*MockCollector) AddRawLog ¶
func (c *MockCollector) AddRawLog(log *protocol.Log)
type MockMetricCollector ¶
type MockMetricCollector struct {
Logs []*protocol.Log
Tags map[string]string
RawLogs []*protocol.Log
// Benchmark switch ignore the cpu and memory performance influences when opening.
Benchmark bool
}
func (*MockMetricCollector) AddDataArray ¶
func (*MockMetricCollector) AddRawLog ¶
func (m *MockMetricCollector) AddRawLog(log *protocol.Log)
Click to show internal directories.
Click to hide internal directories.