Documentation ¶
Index ¶
- Variables
- type Log
- func (*Log) Descriptor() ([]byte, []int)
- func (m *Log) GetContainerId() string
- func (m *Log) GetFileLine() int64
- func (m *Log) GetFileName() string
- func (m *Log) GetHostname() string
- func (m *Log) GetLogLevel() string
- func (m *Log) GetMessage() []byte
- func (m *Log) GetService() string
- func (m *Log) GetSource() string
- func (m *Log) GetTimestamp() int64
- func (m *Log) GetTraceId() string
- func (m *Log) Marshal() (dAtA []byte, err error)
- func (m *Log) MarshalTo(dAtA []byte) (int, error)
- func (*Log) ProtoMessage()
- func (m *Log) Reset()
- func (m *Log) Size() (n int)
- func (m *Log) String() string
- func (m *Log) Unmarshal(dAtA []byte) error
- func (m *Log) XXX_DiscardUnknown()
- func (m *Log) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Log) XXX_Merge(src proto.Message)
- func (m *Log) XXX_Size() int
- func (m *Log) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidLengthLog = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowLog = fmt.Errorf("proto: integer overflow") )
Functions ¶
This section is empty.
Types ¶
type Log ¶
type Log struct { // 原始日志信息 Message []byte `protobuf:"bytes,1,req,name=message" json:"message"` Timestamp int64 `protobuf:"varint,2,req,name=timestamp" json:"timestamp"` Hostname string `protobuf:"bytes,3,req,name=hostname" json:"hostname"` FileName string `protobuf:"bytes,7,opt,name=file_name,json=fileName" json:"file_name"` FileLine int64 `protobuf:"varint,8,opt,name=file_line,json=fileLine" json:"file_line"` LogLevel string `protobuf:"bytes,9,opt,name=log_level,json=logLevel" json:"log_level"` TraceId string `protobuf:"bytes,10,opt,name=trace_id,json=traceId" json:"trace_id"` Service string `protobuf:"bytes,11,opt,name=service" json:"service"` Source string `protobuf:"bytes,12,opt,name=source" json:"source"` ContainerId string `protobuf:"bytes,13,opt,name=container_id,json=containerId" json:"container_id"` }
func (*Log) Descriptor ¶
func (*Log) GetContainerId ¶
func (*Log) GetFileLine ¶
func (*Log) GetFileName ¶
func (*Log) GetHostname ¶
func (*Log) GetLogLevel ¶
func (*Log) GetMessage ¶
func (*Log) GetService ¶
func (*Log) GetTimestamp ¶
func (*Log) GetTraceId ¶
func (*Log) ProtoMessage ¶
func (*Log) ProtoMessage()
func (*Log) XXX_DiscardUnknown ¶
func (m *Log) XXX_DiscardUnknown()
func (*Log) XXX_Unmarshal ¶
Click to show internal directories.
Click to hide internal directories.