/
logutil.pb.go
157 lines (134 loc) · 4.95 KB
/
logutil.pb.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: logutil.proto
package logutil
import (
fmt "fmt"
math "math"
vttime "github.com/Ciyfly/FakerVitess/go/vt/proto/vttime"
proto "github.com/golang/protobuf/proto"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
// Level is the level of the log messages.
type Level int32
const (
// The usual logging levels.
// Should be logged using logging facility.
Level_INFO Level = 0
Level_WARNING Level = 1
Level_ERROR Level = 2
// For messages that may contains non-logging events.
// Should be logged to console directly.
Level_CONSOLE Level = 3
)
var Level_name = map[int32]string{
0: "INFO",
1: "WARNING",
2: "ERROR",
3: "CONSOLE",
}
var Level_value = map[string]int32{
"INFO": 0,
"WARNING": 1,
"ERROR": 2,
"CONSOLE": 3,
}
func (x Level) String() string {
return proto.EnumName(Level_name, int32(x))
}
func (Level) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_31f5dd3702a8edf9, []int{0}
}
// Event is a single logging event
type Event struct {
Time *vttime.Time `protobuf:"bytes,1,opt,name=time,proto3" json:"time,omitempty"`
Level Level `protobuf:"varint,2,opt,name=level,proto3,enum=logutil.Level" json:"level,omitempty"`
File string `protobuf:"bytes,3,opt,name=file,proto3" json:"file,omitempty"`
Line int64 `protobuf:"varint,4,opt,name=line,proto3" json:"line,omitempty"`
Value string `protobuf:"bytes,5,opt,name=value,proto3" json:"value,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Event) Reset() { *m = Event{} }
func (m *Event) String() string { return proto.CompactTextString(m) }
func (*Event) ProtoMessage() {}
func (*Event) Descriptor() ([]byte, []int) {
return fileDescriptor_31f5dd3702a8edf9, []int{0}
}
func (m *Event) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Event.Unmarshal(m, b)
}
func (m *Event) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Event.Marshal(b, m, deterministic)
}
func (m *Event) XXX_Merge(src proto.Message) {
xxx_messageInfo_Event.Merge(m, src)
}
func (m *Event) XXX_Size() int {
return xxx_messageInfo_Event.Size(m)
}
func (m *Event) XXX_DiscardUnknown() {
xxx_messageInfo_Event.DiscardUnknown(m)
}
var xxx_messageInfo_Event proto.InternalMessageInfo
func (m *Event) GetTime() *vttime.Time {
if m != nil {
return m.Time
}
return nil
}
func (m *Event) GetLevel() Level {
if m != nil {
return m.Level
}
return Level_INFO
}
func (m *Event) GetFile() string {
if m != nil {
return m.File
}
return ""
}
func (m *Event) GetLine() int64 {
if m != nil {
return m.Line
}
return 0
}
func (m *Event) GetValue() string {
if m != nil {
return m.Value
}
return ""
}
func init() {
proto.RegisterEnum("logutil.Level", Level_name, Level_value)
proto.RegisterType((*Event)(nil), "logutil.Event")
}
func init() { proto.RegisterFile("logutil.proto", fileDescriptor_31f5dd3702a8edf9) }
var fileDescriptor_31f5dd3702a8edf9 = []byte{
// 235 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02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