logger

package
v0.0.15 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2025 License: GPL-3.0 Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_LoggerExport_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type ColumnData

type ColumnData struct {

	// 字段名称
	ColumnName string `protobuf:"bytes,1,opt,name=columnName,proto3" json:"columnName,omitempty"`
	// 字段类型
	ColumnType int32 `protobuf:"varint,2,opt,name=columnType,proto3" json:"columnType,omitempty"`
	// contains filtered or unexported fields
}

列属性

func (*ColumnData) Descriptor deprecated

func (*ColumnData) Descriptor() ([]byte, []int)

Deprecated: Use ColumnData.ProtoReflect.Descriptor instead.

func (*ColumnData) GetColumnName

func (x *ColumnData) GetColumnName() string

func (*ColumnData) GetColumnType

func (x *ColumnData) GetColumnType() int32

func (*ColumnData) ProtoMessage

func (*ColumnData) ProtoMessage()

func (*ColumnData) ProtoReflect

func (x *ColumnData) ProtoReflect() protoreflect.Message

func (*ColumnData) Reset

func (x *ColumnData) Reset()

func (*ColumnData) String

func (x *ColumnData) String() string

type FieldValue

type FieldValue struct {

	// Types that are assignable to Data:
	//
	//	*FieldValue_I
	//	*FieldValue_L
	//	*FieldValue_D
	//	*FieldValue_B
	//	*FieldValue_S
	Data isFieldValue_Data `protobuf_oneof:"data"`
	// contains filtered or unexported fields
}

每列的具体值

func (*FieldValue) Descriptor deprecated

func (*FieldValue) Descriptor() ([]byte, []int)

Deprecated: Use FieldValue.ProtoReflect.Descriptor instead.

func (*FieldValue) GetB

func (x *FieldValue) GetB() bool

func (*FieldValue) GetD

func (x *FieldValue) GetD() float64

func (*FieldValue) GetData

func (m *FieldValue) GetData() isFieldValue_Data

func (*FieldValue) GetI

func (x *FieldValue) GetI() int32

func (*FieldValue) GetL

func (x *FieldValue) GetL() int64

func (*FieldValue) GetS

func (x *FieldValue) GetS() string

func (*FieldValue) ProtoMessage

func (*FieldValue) ProtoMessage()

func (*FieldValue) ProtoReflect

func (x *FieldValue) ProtoReflect() protoreflect.Message

func (*FieldValue) Reset

func (x *FieldValue) Reset()

func (*FieldValue) String

func (x *FieldValue) String() string

type FieldValue_B

type FieldValue_B struct {
	B bool `protobuf:"varint,4,opt,name=b,proto3,oneof"`
}

type FieldValue_D

type FieldValue_D struct {
	D float64 `protobuf:"fixed64,3,opt,name=d,proto3,oneof"`
}

type FieldValue_I

type FieldValue_I struct {
	I int32 `protobuf:"varint,1,opt,name=i,proto3,oneof"`
}

type FieldValue_L

type FieldValue_L struct {
	L int64 `protobuf:"varint,2,opt,name=l,proto3,oneof"`
}

type FieldValue_S

type FieldValue_S struct {
	S string `protobuf:"bytes,5,opt,name=s,proto3,oneof"`
}

type LoggerData

type LoggerData struct {

	// 采集时间
	ReceiveTime int64 `protobuf:"varint,1,opt,name=receiveTime,proto3" json:"receiveTime,omitempty"`
	// 监控对象的唯一标志
	MonitorObject string `protobuf:"bytes,2,opt,name=monitorObject,proto3" json:"monitorObject,omitempty"`
	// 监控对象的类型
	MonitorType string `protobuf:"bytes,3,opt,name=monitorType,proto3" json:"monitorType,omitempty"`
	// 收集器的唯一标志
	Collector string       `protobuf:"bytes,4,opt,name=collector,proto3" json:"collector,omitempty"`
	TableData []*TableData `protobuf:"bytes,5,rep,name=tableData,proto3" json:"tableData,omitempty"`
	// contains filtered or unexported fields
}

日志数据,一次发送多个表数据

func (*LoggerData) Descriptor deprecated

func (*LoggerData) Descriptor() ([]byte, []int)

Deprecated: Use LoggerData.ProtoReflect.Descriptor instead.

func (*LoggerData) GetCollector

func (x *LoggerData) GetCollector() string

func (*LoggerData) GetMonitorObject

func (x *LoggerData) GetMonitorObject() string

func (*LoggerData) GetMonitorType

func (x *LoggerData) GetMonitorType() string

func (*LoggerData) GetReceiveTime

func (x *LoggerData) GetReceiveTime() int64

func (*LoggerData) GetTableData

func (x *LoggerData) GetTableData() []*TableData

func (*LoggerData) ProtoMessage

func (*LoggerData) ProtoMessage()

func (*LoggerData) ProtoReflect

func (x *LoggerData) ProtoReflect() protoreflect.Message

func (*LoggerData) Reset

func (x *LoggerData) Reset()

func (*LoggerData) String

func (x *LoggerData) String() string

type RowValue

type RowValue struct {
	FieldValue []*FieldValue `protobuf:"bytes,1,rep,name=fieldValue,proto3" json:"fieldValue,omitempty"`
	// contains filtered or unexported fields
}

对应每列的数据

func (*RowValue) Descriptor deprecated

func (*RowValue) Descriptor() ([]byte, []int)

Deprecated: Use RowValue.ProtoReflect.Descriptor instead.

func (*RowValue) GetFieldValue

func (x *RowValue) GetFieldValue() []*FieldValue

func (*RowValue) ProtoMessage

func (*RowValue) ProtoMessage()

func (*RowValue) ProtoReflect

func (x *RowValue) ProtoReflect() protoreflect.Message

func (*RowValue) Reset

func (x *RowValue) Reset()

func (*RowValue) String

func (x *RowValue) String() string

type TableData

type TableData struct {

	// 表名称
	TableName string `protobuf:"bytes,1,opt,name=tableName,proto3" json:"tableName,omitempty"`
	// 列名称
	Columns []*ColumnData `protobuf:"bytes,2,rep,name=columns,proto3" json:"columns,omitempty"`
	// 字段值
	Rows []*RowValue `protobuf:"bytes,3,rep,name=rows,proto3" json:"rows,omitempty"`
	// contains filtered or unexported fields
}

表数据,一个可以插入多条记录

func (*TableData) Descriptor deprecated

func (*TableData) Descriptor() ([]byte, []int)

Deprecated: Use TableData.ProtoReflect.Descriptor instead.

func (*TableData) GetColumns

func (x *TableData) GetColumns() []*ColumnData

func (*TableData) GetRows

func (x *TableData) GetRows() []*RowValue

func (*TableData) GetTableName

func (x *TableData) GetTableName() string

func (*TableData) ProtoMessage

func (*TableData) ProtoMessage()

func (*TableData) ProtoReflect

func (x *TableData) ProtoReflect() protoreflect.Message

func (*TableData) Reset

func (x *TableData) Reset()

func (*TableData) String

func (x *TableData) String() string

Jump to

Keyboard shortcuts

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