/
log.pb.go
199 lines (174 loc) · 7.17 KB
/
log.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
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: github.com/micro/micro/debug/log/proto/log.proto
package go_micro_debug_log
import (
fmt "fmt"
proto "github.com/golang/protobuf/proto"
math "math"
)
// 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
type Record struct {
// timestamp of log record
Timestamp int64 `protobuf:"varint,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
// record metadata
Metadata map[string]string `protobuf:"bytes,2,rep,name=metadata,proto3" json:"metadata,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
// record value
Message string `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Record) Reset() { *m = Record{} }
func (m *Record) String() string { return proto.CompactTextString(m) }
func (*Record) ProtoMessage() {}
func (*Record) Descriptor() ([]byte, []int) {
return fileDescriptor_1e1ac715ceb139de, []int{0}
}
func (m *Record) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Record.Unmarshal(m, b)
}
func (m *Record) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Record.Marshal(b, m, deterministic)
}
func (m *Record) XXX_Merge(src proto.Message) {
xxx_messageInfo_Record.Merge(m, src)
}
func (m *Record) XXX_Size() int {
return xxx_messageInfo_Record.Size(m)
}
func (m *Record) XXX_DiscardUnknown() {
xxx_messageInfo_Record.DiscardUnknown(m)
}
var xxx_messageInfo_Record proto.InternalMessageInfo
func (m *Record) GetTimestamp() int64 {
if m != nil {
return m.Timestamp
}
return 0
}
func (m *Record) GetMetadata() map[string]string {
if m != nil {
return m.Metadata
}
return nil
}
func (m *Record) GetMessage() string {
if m != nil {
return m.Message
}
return ""
}
type ReadRequest struct {
Service string `protobuf:"bytes,1,opt,name=service,proto3" json:"service,omitempty"`
Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ReadRequest) Reset() { *m = ReadRequest{} }
func (m *ReadRequest) String() string { return proto.CompactTextString(m) }
func (*ReadRequest) ProtoMessage() {}
func (*ReadRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_1e1ac715ceb139de, []int{1}
}
func (m *ReadRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ReadRequest.Unmarshal(m, b)
}
func (m *ReadRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ReadRequest.Marshal(b, m, deterministic)
}
func (m *ReadRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_ReadRequest.Merge(m, src)
}
func (m *ReadRequest) XXX_Size() int {
return xxx_messageInfo_ReadRequest.Size(m)
}
func (m *ReadRequest) XXX_DiscardUnknown() {
xxx_messageInfo_ReadRequest.DiscardUnknown(m)
}
var xxx_messageInfo_ReadRequest proto.InternalMessageInfo
func (m *ReadRequest) GetService() string {
if m != nil {
return m.Service
}
return ""
}
func (m *ReadRequest) GetVersion() string {
if m != nil {
return m.Version
}
return ""
}
type ReadResponse struct {
Records []*Record `protobuf:"bytes,1,rep,name=records,proto3" json:"records,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ReadResponse) Reset() { *m = ReadResponse{} }
func (m *ReadResponse) String() string { return proto.CompactTextString(m) }
func (*ReadResponse) ProtoMessage() {}
func (*ReadResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_1e1ac715ceb139de, []int{2}
}
func (m *ReadResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ReadResponse.Unmarshal(m, b)
}
func (m *ReadResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ReadResponse.Marshal(b, m, deterministic)
}
func (m *ReadResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_ReadResponse.Merge(m, src)
}
func (m *ReadResponse) XXX_Size() int {
return xxx_messageInfo_ReadResponse.Size(m)
}
func (m *ReadResponse) XXX_DiscardUnknown() {
xxx_messageInfo_ReadResponse.DiscardUnknown(m)
}
var xxx_messageInfo_ReadResponse proto.InternalMessageInfo
func (m *ReadResponse) GetRecords() []*Record {
if m != nil {
return m.Records
}
return nil
}
func init() {
proto.RegisterType((*Record)(nil), "go.micro.debug.log.Record")
proto.RegisterMapType((map[string]string)(nil), "go.micro.debug.log.Record.MetadataEntry")
proto.RegisterType((*ReadRequest)(nil), "go.micro.debug.log.ReadRequest")
proto.RegisterType((*ReadResponse)(nil), "go.micro.debug.log.ReadResponse")
}
func init() {
proto.RegisterFile("github.com/micro/micro/debug/log/proto/log.proto", fileDescriptor_1e1ac715ceb139de)
}
var fileDescriptor_1e1ac715ceb139de = []byte{
// 293 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x51, 0x41, 0x4b, 0xc3, 0x30,
0x18, 0x35, 0xab, 0x6e, 0xee, 0x9b, 0x82, 0x04, 0x0f, 0x61, 0x08, 0x96, 0x9e, 0x7a, 0xca, 0x64,
0x7a, 0x10, 0x3d, 0x09, 0xf3, 0xa4, 0x5e, 0xf2, 0x0f, 0xb2, 0xf6, 0x23, 0x16, 0x9b, 0xa6, 0x26,
0x69, 0x61, 0xbf, 0xcf, 0x3f, 0x26, 0x4d, 0xdb, 0x89, 0xe8, 0x2e, 0xe1, 0x7b, 0x5f, 0xde, 0x7b,
0x79, 0x8f, 0xc0, 0x8d, 0x2a, 0xfc, 0x7b, 0xb3, 0xe5, 0x99, 0xd1, 0x2b, 0x5d, 0x64, 0xd6, 0x0c,
0x67, 0x8e, 0xdb, 0x46, 0xad, 0x4a, 0xa3, 0x56, 0xb5, 0x35, 0xde, 0x74, 0x13, 0x0f, 0x13, 0xa5,
0xca, 0xf0, 0xc0, 0xe1, 0x81, 0xc3, 0x4b, 0xa3, 0x92, 0x2f, 0x02, 0x53, 0x81, 0x99, 0xb1, 0x39,
0xbd, 0x82, 0xb9, 0x2f, 0x34, 0x3a, 0x2f, 0x75, 0xcd, 0x48, 0x4c, 0xd2, 0x48, 0xfc, 0x2c, 0xe8,
0x06, 0x4e, 0x35, 0x7a, 0x99, 0x4b, 0x2f, 0xd9, 0x24, 0x8e, 0xd2, 0xc5, 0x3a, 0xe5, 0x7f, 0xfd,
0x78, 0xef, 0xc5, 0xdf, 0x06, 0xea, 0x73, 0xe5, 0xed, 0x4e, 0xec, 0x95, 0x94, 0xc1, 0x4c, 0xa3,
0x73, 0x52, 0x21, 0x8b, 0x62, 0x92, 0xce, 0xc5, 0x08, 0x97, 0x8f, 0x70, 0xfe, 0x4b, 0x44, 0x2f,
0x20, 0xfa,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