log_models

package
v1.3.4 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

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) Descriptor() ([]byte, []int)

func (*Log) GetContainerId

func (m *Log) GetContainerId() string

func (*Log) GetFileLine

func (m *Log) GetFileLine() int64

func (*Log) GetFileName

func (m *Log) GetFileName() string

func (*Log) GetHostname

func (m *Log) GetHostname() string

func (*Log) GetLogLevel

func (m *Log) GetLogLevel() string

func (*Log) GetMessage

func (m *Log) GetMessage() []byte

func (*Log) GetService

func (m *Log) GetService() string

func (*Log) GetSource

func (m *Log) GetSource() string

func (*Log) GetTimestamp

func (m *Log) GetTimestamp() int64

func (*Log) GetTraceId

func (m *Log) GetTraceId() string

func (*Log) Marshal

func (m *Log) Marshal() (dAtA []byte, err error)

func (*Log) MarshalTo

func (m *Log) MarshalTo(dAtA []byte) (int, error)

func (*Log) ProtoMessage

func (*Log) ProtoMessage()

func (*Log) Reset

func (m *Log) Reset()

func (*Log) Size

func (m *Log) Size() (n int)

func (*Log) String

func (m *Log) String() string

func (*Log) Unmarshal

func (m *Log) Unmarshal(dAtA []byte) error

func (*Log) XXX_DiscardUnknown

func (m *Log) XXX_DiscardUnknown()

func (*Log) XXX_Marshal

func (m *Log) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Log) XXX_Merge

func (dst *Log) XXX_Merge(src proto.Message)

func (*Log) XXX_Size

func (m *Log) XXX_Size() int

func (*Log) XXX_Unmarshal

func (m *Log) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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