feedx 0.10.2 → 0.12.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.editorconfig +3 -0
- data/.gitignore +1 -0
- data/.rubocop.yml +2 -0
- data/.travis.yml +12 -2
- data/Gemfile +0 -2
- data/Gemfile.lock +50 -30
- data/Makefile +10 -5
- data/compression.go +18 -0
- data/compression_test.go +12 -0
- data/consumer_test.go +5 -4
- data/ext/parquet/decoder.go +170 -0
- data/ext/parquet/decoder_test.go +88 -0
- data/ext/parquet/go.mod +12 -0
- data/ext/parquet/go.sum +134 -0
- data/ext/parquet/parquet.go +78 -0
- data/ext/parquet/parquet_test.go +28 -0
- data/ext/parquet/reader.go +89 -0
- data/ext/parquet/testdata/alltypes_plain.parquet +0 -0
- data/ext/parquet/types.go +51 -0
- data/feedx.gemspec +3 -2
- data/feedx_test.go +8 -24
- data/format.go +50 -20
- data/format_test.go +8 -6
- data/go.mod +9 -11
- data/go.sum +76 -28
- data/internal/testdata/testdata.pb.go +223 -0
- data/internal/testdata/testdata.proto +15 -0
- data/lib/feedx/cache/abstract.rb +2 -2
- data/lib/feedx/cache/memory.rb +1 -0
- data/lib/feedx/compression.rb +11 -4
- data/lib/feedx/compression/abstract.rb +2 -2
- data/lib/feedx/compression/gzip.rb +14 -16
- data/lib/feedx/compression/none.rb +4 -4
- data/lib/feedx/consumer.rb +15 -9
- data/lib/feedx/format.rb +18 -9
- data/lib/feedx/format/abstract.rb +42 -13
- data/lib/feedx/format/json.rb +12 -8
- data/lib/feedx/format/parquet.rb +102 -0
- data/lib/feedx/format/protobuf.rb +16 -8
- data/lib/feedx/producer.rb +27 -22
- data/lib/feedx/stream.rb +36 -23
- data/producer_test.go +1 -2
- data/reader_test.go +6 -6
- data/spec/feedx/compression/gzip_spec.rb +2 -2
- data/spec/feedx/compression/none_spec.rb +2 -2
- data/spec/feedx/compression_spec.rb +9 -9
- data/spec/feedx/consumer_spec.rb +1 -1
- data/spec/feedx/format/abstract_spec.rb +11 -8
- data/spec/feedx/format/json_spec.rb +17 -16
- data/spec/feedx/format/parquet_spec.rb +30 -0
- data/spec/feedx/format/protobuf_spec.rb +12 -11
- data/spec/feedx/format_spec.rb +8 -8
- data/spec/feedx/producer_spec.rb +6 -0
- data/spec/feedx/stream_spec.rb +43 -6
- data/spec/spec_helper.rb +17 -1
- metadata +33 -5
data/feedx.gemspec
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = 'feedx'
|
3
|
-
s.version = '0.
|
3
|
+
s.version = '0.12.3'
|
4
4
|
s.authors = ['Black Square Media Ltd']
|
5
5
|
s.email = ['info@blacksquaremedia.com']
|
6
6
|
s.summary = %(Exchange data between components via feeds)
|
@@ -13,11 +13,12 @@ Gem::Specification.new do |s|
|
|
13
13
|
s.require_paths = ['lib']
|
14
14
|
s.required_ruby_version = '>= 2.4'
|
15
15
|
|
16
|
-
s.add_dependency 'bfs', '>= 0.
|
16
|
+
s.add_dependency 'bfs', '>= 0.8.0'
|
17
17
|
|
18
18
|
s.add_development_dependency 'bundler'
|
19
19
|
s.add_development_dependency 'pbio'
|
20
20
|
s.add_development_dependency 'rake'
|
21
|
+
s.add_development_dependency 'red-parquet', '>= 1.0.0'
|
21
22
|
s.add_development_dependency 'rspec'
|
22
23
|
s.add_development_dependency 'rubocop'
|
23
24
|
s.add_development_dependency 'rubocop-performance'
|
data/feedx_test.go
CHANGED
@@ -8,7 +8,7 @@ import (
|
|
8
8
|
|
9
9
|
"github.com/bsm/bfs"
|
10
10
|
"github.com/bsm/feedx"
|
11
|
-
"github.com/
|
11
|
+
"github.com/bsm/feedx/internal/testdata"
|
12
12
|
. "github.com/onsi/ginkgo"
|
13
13
|
. "github.com/onsi/gomega"
|
14
14
|
)
|
@@ -24,27 +24,12 @@ func init() {
|
|
24
24
|
|
25
25
|
// ------------------------------------------------------------------------
|
26
26
|
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
type MockMessage struct {
|
35
|
-
Name string `protobuf:"bytes,1,opt,name=name,proto3"`
|
36
|
-
Enum Mock_Enum `protobuf:"varint,2,opt,name=enum,proto3"`
|
37
|
-
Height uint32 `protobuf:"varint,3,opt,name=height"`
|
38
|
-
}
|
39
|
-
|
40
|
-
func (m *MockMessage) Reset() { *m = MockMessage{} }
|
41
|
-
func (m *MockMessage) String() string { return proto.CompactTextString(m) }
|
42
|
-
func (*MockMessage) ProtoMessage() {}
|
43
|
-
|
44
|
-
var fixture = MockMessage{
|
45
|
-
Name: "Joe",
|
46
|
-
Enum: Mock_FIRST,
|
47
|
-
Height: 180,
|
27
|
+
func seed() *testdata.MockMessage {
|
28
|
+
return &testdata.MockMessage{
|
29
|
+
Name: "Joe",
|
30
|
+
Enum: testdata.MockEnum_FIRST,
|
31
|
+
Height: 180,
|
32
|
+
}
|
48
33
|
}
|
49
34
|
|
50
35
|
// ------------------------------------------------------------------------
|
@@ -56,8 +41,7 @@ func writeMulti(obj *bfs.Object, numEntries int) error {
|
|
56
41
|
defer w.Discard()
|
57
42
|
|
58
43
|
for i := 0; i < numEntries; i++ {
|
59
|
-
|
60
|
-
if err := w.Encode(&fix); err != nil {
|
44
|
+
if err := w.Encode(seed()); err != nil {
|
61
45
|
return err
|
62
46
|
}
|
63
47
|
}
|
data/format.go
CHANGED
@@ -7,9 +7,11 @@ import (
|
|
7
7
|
"io"
|
8
8
|
"path"
|
9
9
|
|
10
|
-
"github.com/
|
10
|
+
"github.com/bsm/pbio"
|
11
|
+
"google.golang.org/protobuf/proto"
|
11
12
|
|
12
|
-
|
13
|
+
gio "github.com/gogo/protobuf/io"
|
14
|
+
gproto "github.com/gogo/protobuf/proto"
|
13
15
|
)
|
14
16
|
|
15
17
|
var errNoFormat = errors.New("feedx: no format detected")
|
@@ -92,8 +94,6 @@ func (jsonEncoderWrapper) Close() error { return nil }
|
|
92
94
|
|
93
95
|
// --------------------------------------------------------------------
|
94
96
|
|
95
|
-
const protobufMaxMessageSize = 20 * 1024 * 1024 // 20MB
|
96
|
-
|
97
97
|
// ProtobufFormat provides a Format implemention for Protobuf.
|
98
98
|
var ProtobufFormat = protobufFormat{}
|
99
99
|
|
@@ -101,32 +101,62 @@ type protobufFormat struct{}
|
|
101
101
|
|
102
102
|
// NewDecoder implements Format.
|
103
103
|
func (protobufFormat) NewDecoder(r io.Reader) (FormatDecoder, error) {
|
104
|
-
|
105
|
-
return protobufDecoderWrapper{ReadCloser: rc}, nil
|
104
|
+
return &protobufWrapper{r: r}, nil
|
106
105
|
}
|
107
106
|
|
108
107
|
// NewEncoder implements Format.
|
109
108
|
func (protobufFormat) NewEncoder(w io.Writer) (FormatEncoder, error) {
|
110
|
-
|
111
|
-
|
109
|
+
return &protobufWrapper{w: w}, nil
|
110
|
+
}
|
111
|
+
|
112
|
+
type protobufWrapper struct {
|
113
|
+
r io.Reader
|
114
|
+
dec *pbio.Decoder
|
115
|
+
pbr gio.Reader
|
116
|
+
|
117
|
+
w io.Writer
|
118
|
+
enc *pbio.Encoder
|
119
|
+
pbw gio.Writer
|
112
120
|
}
|
113
121
|
|
114
|
-
|
122
|
+
func (w *protobufWrapper) Decode(v interface{}) error {
|
123
|
+
switch msg := v.(type) {
|
124
|
+
case proto.Message:
|
125
|
+
if w.dec == nil {
|
126
|
+
w.dec = pbio.NewDecoder(w.r)
|
127
|
+
}
|
128
|
+
return w.dec.Decode(msg)
|
129
|
+
|
130
|
+
case gproto.Message:
|
131
|
+
if w.pbr == nil {
|
132
|
+
w.pbr = gio.NewDelimitedReader(w.r, 1<<28)
|
133
|
+
}
|
134
|
+
return w.pbr.ReadMsg(msg)
|
115
135
|
|
116
|
-
|
117
|
-
|
118
|
-
if !ok {
|
119
|
-
return fmt.Errorf("feedx: value %v is not a proto.Message", v)
|
136
|
+
default:
|
137
|
+
return fmt.Errorf("value %v (%T) is not a proto.Message", v, v)
|
120
138
|
}
|
121
|
-
return w.ReadCloser.ReadMsg(msg)
|
122
139
|
}
|
123
140
|
|
124
|
-
|
141
|
+
func (w *protobufWrapper) Encode(v interface{}) error {
|
142
|
+
switch msg := v.(type) {
|
143
|
+
case proto.Message:
|
144
|
+
if w.enc == nil {
|
145
|
+
w.enc = pbio.NewEncoder(w.w)
|
146
|
+
}
|
147
|
+
return w.enc.Encode(msg)
|
148
|
+
|
149
|
+
case gproto.Message:
|
150
|
+
if w.pbw == nil {
|
151
|
+
w.pbw = gio.NewDelimitedWriter(w.w)
|
152
|
+
}
|
153
|
+
return w.pbw.WriteMsg(msg)
|
125
154
|
|
126
|
-
|
127
|
-
|
128
|
-
if !ok {
|
129
|
-
return fmt.Errorf("feedx: value %v is not a proto.Message", v)
|
155
|
+
default:
|
156
|
+
return fmt.Errorf("value %v (%T) is not a proto.Message", v, v)
|
130
157
|
}
|
131
|
-
|
158
|
+
}
|
159
|
+
|
160
|
+
func (*protobufWrapper) Close() error {
|
161
|
+
return nil
|
132
162
|
}
|
data/format_test.go
CHANGED
@@ -5,6 +5,7 @@ import (
|
|
5
5
|
"io"
|
6
6
|
|
7
7
|
"github.com/bsm/feedx"
|
8
|
+
"github.com/bsm/feedx/internal/testdata"
|
8
9
|
. "github.com/onsi/ginkgo"
|
9
10
|
. "github.com/onsi/gomega"
|
10
11
|
)
|
@@ -17,24 +18,23 @@ var _ = Describe("Format", func() {
|
|
17
18
|
Expect(err).NotTo(HaveOccurred())
|
18
19
|
defer enc.Close()
|
19
20
|
|
20
|
-
|
21
|
-
Expect(enc.Encode(
|
22
|
-
Expect(enc.Encode(&fix)).To(Succeed())
|
21
|
+
Expect(enc.Encode(seed())).To(Succeed())
|
22
|
+
Expect(enc.Encode(seed())).To(Succeed())
|
23
23
|
Expect(enc.Close()).To(Succeed())
|
24
24
|
|
25
25
|
dec, err := subject.NewDecoder(buf)
|
26
26
|
Expect(err).NotTo(HaveOccurred())
|
27
27
|
defer dec.Close()
|
28
28
|
|
29
|
-
v1 := new(MockMessage)
|
29
|
+
v1 := new(testdata.MockMessage)
|
30
30
|
Expect(dec.Decode(v1)).To(Succeed())
|
31
31
|
Expect(v1.Name).To(Equal("Joe"))
|
32
32
|
|
33
|
-
v2 := new(MockMessage)
|
33
|
+
v2 := new(testdata.MockMessage)
|
34
34
|
Expect(dec.Decode(v2)).To(Succeed())
|
35
35
|
Expect(v2.Name).To(Equal("Joe"))
|
36
36
|
|
37
|
-
v3 := new(MockMessage)
|
37
|
+
v3 := new(testdata.MockMessage)
|
38
38
|
Expect(dec.Decode(v3)).To(MatchError(io.EOF))
|
39
39
|
|
40
40
|
Expect(dec.Close()).To(Succeed())
|
@@ -43,10 +43,12 @@ var _ = Describe("Format", func() {
|
|
43
43
|
It("should detect the format", func() {
|
44
44
|
Expect(feedx.DetectFormat("/path/to/file.json")).To(Equal(feedx.JSONFormat))
|
45
45
|
Expect(feedx.DetectFormat("/path/to/file.json.gz")).To(Equal(feedx.JSONFormat))
|
46
|
+
Expect(feedx.DetectFormat("/path/to/file.json.flate")).To(Equal(feedx.JSONFormat))
|
46
47
|
Expect(feedx.DetectFormat("/path/to/file.jsonz")).To(Equal(feedx.JSONFormat))
|
47
48
|
|
48
49
|
Expect(feedx.DetectFormat("/path/to/file.pb")).To(Equal(feedx.ProtobufFormat))
|
49
50
|
Expect(feedx.DetectFormat("/path/to/file.pb.gz")).To(Equal(feedx.ProtobufFormat))
|
51
|
+
Expect(feedx.DetectFormat("/path/to/file.pb.flate")).To(Equal(feedx.ProtobufFormat))
|
50
52
|
Expect(feedx.DetectFormat("/path/to/file.pbz")).To(Equal(feedx.ProtobufFormat))
|
51
53
|
|
52
54
|
Expect(feedx.DetectFormat("")).To(BeNil())
|
data/go.mod
CHANGED
@@ -1,16 +1,14 @@
|
|
1
1
|
module github.com/bsm/feedx
|
2
2
|
|
3
|
+
go 1.15
|
4
|
+
|
3
5
|
require (
|
4
|
-
github.com/bmatcuk/doublestar v1.3.
|
5
|
-
github.com/bsm/bfs v0.10.
|
6
|
+
github.com/bmatcuk/doublestar v1.3.2 // indirect
|
7
|
+
github.com/bsm/bfs v0.10.4
|
8
|
+
github.com/bsm/pbio v0.2.2
|
6
9
|
github.com/gogo/protobuf v1.3.1
|
7
|
-
github.com/golang/protobuf v1.4.
|
8
|
-
github.com/onsi/ginkgo v1.
|
9
|
-
github.com/onsi/gomega v1.
|
10
|
-
golang.org/
|
11
|
-
golang.org/x/sys v0.0.0-20191008105621-543471e840be // indirect
|
12
|
-
gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15 // indirect
|
13
|
-
gopkg.in/yaml.v2 v2.2.4 // indirect
|
10
|
+
github.com/golang/protobuf v1.4.2
|
11
|
+
github.com/onsi/ginkgo v1.14.1
|
12
|
+
github.com/onsi/gomega v1.10.2
|
13
|
+
google.golang.org/protobuf v1.25.0
|
14
14
|
)
|
15
|
-
|
16
|
-
go 1.13
|
data/go.sum
CHANGED
@@ -1,28 +1,41 @@
|
|
1
|
+
cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw=
|
2
|
+
github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU=
|
1
3
|
github.com/bmatcuk/doublestar v1.2.2 h1:oC24CykoSAB8zd7XgruHo33E0cHJf/WhQA/7BeXj+x0=
|
2
4
|
github.com/bmatcuk/doublestar v1.2.2/go.mod h1:wiQtGV+rzVYxB7WIlirSN++5HPtPlXEo9MEoZQC/PmE=
|
3
|
-
github.com/bmatcuk/doublestar v1.3.
|
4
|
-
github.com/bmatcuk/doublestar v1.3.
|
5
|
-
github.com/bsm/bfs v0.10.
|
6
|
-
github.com/bsm/bfs v0.10.
|
7
|
-
github.com/
|
5
|
+
github.com/bmatcuk/doublestar v1.3.2 h1:mzUncgFmpzNUhIITFqGdZ8nUU0O7JTJzRO8VdkeLCSo=
|
6
|
+
github.com/bmatcuk/doublestar v1.3.2/go.mod h1:wiQtGV+rzVYxB7WIlirSN++5HPtPlXEo9MEoZQC/PmE=
|
7
|
+
github.com/bsm/bfs v0.10.4 h1:59I1FBEcIku/1MfPyIEeBfKm+ICaJ4lVEcago/YeCLg=
|
8
|
+
github.com/bsm/bfs v0.10.4/go.mod h1:N3md8kQvlteRDcfc8tqw759yW98dhj+6seWEVcg4CmM=
|
9
|
+
github.com/bsm/pbio v0.2.2 h1:Xdj5hQkS0K3kKc1NY6hoSWMvzpq0Mk5j8vcc7irslno=
|
10
|
+
github.com/bsm/pbio v0.2.2/go.mod h1:3O4XQFoarlYalkGd+zMFfEUyalP8NBKkQ0Ta4IwhN4w=
|
11
|
+
github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU=
|
12
|
+
github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw=
|
13
|
+
github.com/envoyproxy/go-control-plane v0.9.1-0.20191026205805-5f8ba28d4473/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4=
|
14
|
+
github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c=
|
8
15
|
github.com/fsnotify/fsnotify v1.4.7/go.mod h1:jwhsz4b93w/PPRr/qN1Yymfu8t87LnFCMoQvtojpjFo=
|
16
|
+
github.com/fsnotify/fsnotify v1.4.9 h1:hsms1Qyu0jgnwNXIxa+/V/PDsU6CfLf6CNO8H7IWoS4=
|
17
|
+
github.com/fsnotify/fsnotify v1.4.9/go.mod h1:znqG4EE+3YCdAaPaxE2ZRY/06pZUdp0tY4IgpuI1SZQ=
|
9
18
|
github.com/gogo/protobuf v1.3.1 h1:DqDEcV5aeaTmdFBePNpYsp3FlcVH/2ISVVM9Qf8PSls=
|
10
19
|
github.com/gogo/protobuf v1.3.1/go.mod h1:SlYgWuQ5SjCEi6WLHjHCa1yvBfUnHcTbrrZtXPKa29o=
|
11
|
-
github.com/golang/
|
20
|
+
github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q=
|
21
|
+
github.com/golang/mock v1.1.1/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A=
|
12
22
|
github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U=
|
13
|
-
github.com/golang/protobuf v1.3.2 h1:6nsPYzhq5kReh6QImI3k5qWzO4PEbvbIW2cwSfR/6xs=
|
14
23
|
github.com/golang/protobuf v1.3.2/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U=
|
15
24
|
github.com/golang/protobuf v1.4.0-rc.1/go.mod h1:ceaxUfeHdC40wWswd/P6IGgMaK3YpKi5j83Wpe3EHw8=
|
16
25
|
github.com/golang/protobuf v1.4.0-rc.1.0.20200221234624-67d41d38c208/go.mod h1:xKAWHe0F5eneWXFV3EuXVDTCmh+JuBKY0li0aMyXATA=
|
17
26
|
github.com/golang/protobuf v1.4.0-rc.2/go.mod h1:LlEzMj4AhA7rCAGe4KMBDvJI+AwstrUpVNzEA03Pprs=
|
18
27
|
github.com/golang/protobuf v1.4.0-rc.4.0.20200313231945-b860323f09d0/go.mod h1:WU3c8KckQ9AFe+yFwt9sWVRKCVIyN9cPHBJSNnbL67w=
|
19
|
-
github.com/golang/protobuf v1.4.0 h1:oOuy+ugB+P/kBdUnG5QaMXSIyJ1q38wWSojYCb3z5VQ=
|
20
28
|
github.com/golang/protobuf v1.4.0/go.mod h1:jodUvKwWbYaEsadDk5Fwe5c77LiNKVO9IDvqG2KuDX0=
|
29
|
+
github.com/golang/protobuf v1.4.1/go.mod h1:U8fpvMrcmy5pZrNK1lt4xCsGvpyWQ/VVv6QDs8UjoX8=
|
30
|
+
github.com/golang/protobuf v1.4.2 h1:+Z5KGCizgyZCbGh1KZqA0fcLLkwbsjIzS4aV2v7wJX0=
|
31
|
+
github.com/golang/protobuf v1.4.2/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI=
|
32
|
+
github.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5aqRK0M=
|
21
33
|
github.com/google/go-cmp v0.3.0/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU=
|
22
34
|
github.com/google/go-cmp v0.3.1/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU=
|
23
35
|
github.com/google/go-cmp v0.4.0 h1:xsAVV57WRhGj6kEIi8ReJzQlHHqcBYCElAvkovg3B/4=
|
24
36
|
github.com/google/go-cmp v0.4.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
|
25
|
-
github.com/
|
37
|
+
github.com/google/go-cmp v0.5.0 h1:/QaMHBdZ26BB3SSst0Iwl10Epc+xhTquomWX0oZEB6w=
|
38
|
+
github.com/google/go-cmp v0.5.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
|
26
39
|
github.com/hpcloud/tail v1.0.0/go.mod h1:ab1qPbhIpdTxEkNHXyeSf5vhxWSCs/tWer42PpOxQnU=
|
27
40
|
github.com/kisielk/errcheck v1.2.0/go.mod h1:/BMXB+zMLi60iA8Vv6Ksmxu/1UDYcXs4uQLJ+jE2L00=
|
28
41
|
github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck=
|
@@ -31,53 +44,88 @@ github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORN
|
|
31
44
|
github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ=
|
32
45
|
github.com/kr/text v0.1.0 h1:45sCR5RtlFHMR4UwH9sdQ5TC8v0qDQCHnXt+kaKSTVE=
|
33
46
|
github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI=
|
34
|
-
github.com/
|
47
|
+
github.com/nxadm/tail v1.4.4 h1:DQuhQpB1tVlglWS2hLQ5OV6B5r8aGxSrPc5Qo6uTN78=
|
48
|
+
github.com/nxadm/tail v1.4.4/go.mod h1:kenIhsEOeOJmVchQTgglprH7qJGnHDVpk1VPCcaMI8A=
|
35
49
|
github.com/onsi/ginkgo v1.6.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE=
|
36
|
-
github.com/onsi/ginkgo v1.8.0 h1:VkHVNpR4iVnU8XQR6DBm8BqYjN7CRzw+xKUbVVbbW9w=
|
37
50
|
github.com/onsi/ginkgo v1.8.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE=
|
38
|
-
github.com/onsi/ginkgo v1.
|
39
|
-
github.com/onsi/ginkgo v1.
|
40
|
-
github.com/onsi/
|
51
|
+
github.com/onsi/ginkgo v1.12.1/go.mod h1:zj2OWP4+oCPe1qIXoGWkgMRwljMUYCdkwsT2108oapk=
|
52
|
+
github.com/onsi/ginkgo v1.14.1 h1:jMU0WaQrP0a/YAEq8eJmJKjBoMs+pClEr1vDMlM/Do4=
|
53
|
+
github.com/onsi/ginkgo v1.14.1/go.mod h1:iSB4RoI2tjJc9BBv4NKIKWKya62Rps+oPG/Lv9klQyY=
|
41
54
|
github.com/onsi/gomega v1.5.0/go.mod h1:ex+gbHU/CVuBBDIJjb2X0qEXbFg53c61hWP/1CpauHY=
|
42
|
-
github.com/onsi/gomega v1.7.
|
43
|
-
github.com/onsi/gomega v1.
|
55
|
+
github.com/onsi/gomega v1.7.1/go.mod h1:XdKZgCCFLUoM/7CFJVPcG8C1xQ1AJ0vpAezJrB7JYyY=
|
56
|
+
github.com/onsi/gomega v1.10.1 h1:o0+MgICZLuZ7xjH7Vx6zS/zcu93/BEp1VwkIW1mEXCE=
|
57
|
+
github.com/onsi/gomega v1.10.1/go.mod h1:iN09h71vgCQne3DLsj+A5owkum+a2tYe+TOCB1ybHNo=
|
58
|
+
github.com/onsi/gomega v1.10.2 h1:aY/nuoWlKJud2J6U0E3NWsjlg+0GtwXxgEqthRdzlcs=
|
59
|
+
github.com/onsi/gomega v1.10.2/go.mod h1:iN09h71vgCQne3DLsj+A5owkum+a2tYe+TOCB1ybHNo=
|
60
|
+
github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA=
|
44
61
|
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
|
62
|
+
golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA=
|
63
|
+
golang.org/x/lint v0.0.0-20181026193005-c67002cb31c3/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE=
|
64
|
+
golang.org/x/lint v0.0.0-20190227174305-5b3e6a55c961/go.mod h1:wehouNa3lNwaWXcvxsM5YxQ5yQlVC4a0KAMCusXpPoU=
|
65
|
+
golang.org/x/lint v0.0.0-20190313153728-d0100b6bd8b3/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc=
|
66
|
+
golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
|
67
|
+
golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
|
45
68
|
golang.org/x/net v0.0.0-20180906233101-161cd47e91fd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
|
69
|
+
golang.org/x/net v0.0.0-20190213061140-3a22650c66bd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
|
70
|
+
golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
|
46
71
|
golang.org/x/net v0.0.0-20190813141303-74dc4d7220e7/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
|
47
|
-
golang.org/x/net v0.0.0-
|
48
|
-
golang.org/x/net v0.0.0-
|
72
|
+
golang.org/x/net v0.0.0-20200520004742-59133d7f0dd7 h1:AeiKBIuRw3UomYXSbLy0Mc2dDLfdtbT/IVn4keq83P0=
|
73
|
+
golang.org/x/net v0.0.0-20200520004742-59133d7f0dd7/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A=
|
74
|
+
golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U=
|
49
75
|
golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
76
|
+
golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
77
|
+
golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
78
|
+
golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
|
50
79
|
golang.org/x/sys v0.0.0-20180909124046-d0be0721c37e/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
|
51
80
|
golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
|
52
81
|
golang.org/x/sys v0.0.0-20190813064441-fde4db37ae7a/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
53
|
-
golang.org/x/sys v0.0.0-
|
54
|
-
golang.org/x/sys v0.0.0-
|
55
|
-
golang.org/x/
|
82
|
+
golang.org/x/sys v0.0.0-20190904154756-749cb33beabd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
83
|
+
golang.org/x/sys v0.0.0-20191005200804-aed5e4c7ecf9/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
84
|
+
golang.org/x/sys v0.0.0-20191120155948-bd437916bb0e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
85
|
+
golang.org/x/sys v0.0.0-20200323222414-85ca7c5b95cd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
86
|
+
golang.org/x/sys v0.0.0-20200519105757-fe76b779f299 h1:DYfZAGf2WMFjMxbgTjaC+2HC7NkNAQs+6Q8b9WEB/F4=
|
87
|
+
golang.org/x/sys v0.0.0-20200519105757-fe76b779f299/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
56
88
|
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
|
57
89
|
golang.org/x/text v0.3.2 h1:tW2bmiBqwgJj/UpqtC8EpXEZVYOwU0yG4iWbprSVAcs=
|
58
90
|
golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk=
|
59
91
|
golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
|
60
92
|
golang.org/x/tools v0.0.0-20181030221726-6c7e314b6563/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
|
93
|
+
golang.org/x/tools v0.0.0-20190114222345-bf090417da8b/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
|
94
|
+
golang.org/x/tools v0.0.0-20190226205152-f727befe758c/go.mod h1:9Yl7xja0Znq3iFh3HoIrodX9oNMXvdceNzlUR8zjMvY=
|
95
|
+
golang.org/x/tools v0.0.0-20190311212946-11955173bddd/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs=
|
96
|
+
golang.org/x/tools v0.0.0-20190524140312-2c0ae7006135/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q=
|
61
97
|
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543 h1:E7g+9GITq07hpfrRu66IVDexMakfv52eLZ2CXBWiKr4=
|
62
98
|
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
|
99
|
+
google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM=
|
100
|
+
google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4=
|
101
|
+
google.golang.org/genproto v0.0.0-20180817151627-c66870c02cf8/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc=
|
102
|
+
google.golang.org/genproto v0.0.0-20190819201941-24fa4b261c55/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc=
|
103
|
+
google.golang.org/genproto v0.0.0-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo=
|
104
|
+
google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c=
|
105
|
+
google.golang.org/grpc v1.23.0/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg=
|
106
|
+
google.golang.org/grpc v1.27.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk=
|
63
107
|
google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod h1:DFci5gLYBciE7Vtevhsrf46CRTquxDuWsQurQQe4oz8=
|
64
108
|
google.golang.org/protobuf v0.0.0-20200221191635-4d8936d0db64/go.mod h1:kwYJMbMJ01Woi6D6+Kah6886xMZcty6N08ah7+eCXa0=
|
65
109
|
google.golang.org/protobuf v0.0.0-20200228230310-ab0ca4ff8a60/go.mod h1:cfTl7dwQJ+fmap5saPgwCLgHXTUD7jkjRqWcaiX5VyM=
|
66
110
|
google.golang.org/protobuf v1.20.1-0.20200309200217-e05f789c0967/go.mod h1:A+miEFZTKqfCUM6K7xSMQL9OKL/b6hQv+e19PK+JZNE=
|
67
|
-
google.golang.org/protobuf v1.21.0 h1:qdOKuR/EIArgaWNjetjgTzgVTAZ+S/WXVrq9HW9zimw=
|
68
111
|
google.golang.org/protobuf v1.21.0/go.mod h1:47Nbq4nVaFHyn7ilMalzfO3qCViNmqZ2kzikPIcrTAo=
|
112
|
+
google.golang.org/protobuf v1.22.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU=
|
113
|
+
google.golang.org/protobuf v1.23.0 h1:4MY060fB1DLGMB/7MBTLnwQUY6+F09GEiz6SsrNqyzM=
|
114
|
+
google.golang.org/protobuf v1.23.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU=
|
115
|
+
google.golang.org/protobuf v1.23.1-0.20200526195155-81db48ad09cc/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU=
|
116
|
+
google.golang.org/protobuf v1.25.0 h1:Ejskq+SyPohKW+1uil0JJMtmHCgJPJ/qWTxr8qp+R4c=
|
117
|
+
google.golang.org/protobuf v1.25.0/go.mod h1:9JNX74DMeImyA3h4bdi1ymwjUzf21/xIlbajtzgsN7c=
|
118
|
+
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM=
|
69
119
|
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
|
70
120
|
gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127 h1:qIbj1fsPNlZgppZ+VLlY7N33q108Sa+fhmuc+sWQYwY=
|
71
121
|
gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
|
72
|
-
gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15 h1:YR8cESwS4TdDjEe65xsg0ogRM/Nc3DYOhEAlW+xobZo=
|
73
|
-
gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
|
74
|
-
gopkg.in/fsnotify.v1 v1.4.7 h1:xOHLXZwVvI9hhs+cLKq5+I5onOuwQLhQwiu63xxlHs4=
|
75
122
|
gopkg.in/fsnotify.v1 v1.4.7/go.mod h1:Tz8NjZHkW78fSQdbUxIjBTcgA1z1m8ZHf0WmKUhAMys=
|
76
123
|
gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7 h1:uRGJdciOHaEIrze2W8Q3AKkepLTh2hOroT7a+7czfdQ=
|
77
124
|
gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7/go.mod h1:dt/ZhP58zS4L8KSrWDmTeBkI65Dw0HsyUHuEVlX15mw=
|
78
|
-
gopkg.in/yaml.v2 v2.2.1 h1:mUhvW9EsL+naU5Q3cakzfE91YhliOondGd6ZrsDBHQE=
|
79
125
|
gopkg.in/yaml.v2 v2.2.1/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
|
80
|
-
gopkg.in/yaml.v2 v2.2.2 h1:ZCJp+EgiOT7lHqUV2J862kp8Qj64Jo6az82+3Td9dZw=
|
81
126
|
gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
|
82
|
-
gopkg.in/yaml.v2 v2.2.4 h1:/eiJrUcujPVeJ3xlSWaiNi3uSVmDGBK1pDHUHAnao1I=
|
83
127
|
gopkg.in/yaml.v2 v2.2.4/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
|
128
|
+
gopkg.in/yaml.v2 v2.3.0 h1:clyUAQHOM3G0M3f5vQj7LuJrETvjVot3Z5el9nffUtU=
|
129
|
+
gopkg.in/yaml.v2 v2.3.0/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
|
130
|
+
honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4=
|
131
|
+
honnef.co/go/tools v0.0.0-20190523083050-ea95bdfd59fc/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4=
|
@@ -0,0 +1,223 @@
|
|
1
|
+
// Code generated by protoc-gen-go. DO NOT EDIT.
|
2
|
+
// versions:
|
3
|
+
// protoc-gen-go v1.24.0-devel
|
4
|
+
// protoc v3.11.3
|
5
|
+
// source: internal/testdata/testdata.proto
|
6
|
+
|
7
|
+
package testdata
|
8
|
+
|
9
|
+
import (
|
10
|
+
proto "github.com/golang/protobuf/proto"
|
11
|
+
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
12
|
+
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
13
|
+
reflect "reflect"
|
14
|
+
sync "sync"
|
15
|
+
)
|
16
|
+
|
17
|
+
const (
|
18
|
+
// Verify that this generated code is sufficiently up-to-date.
|
19
|
+
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
|
20
|
+
// Verify that runtime/protoimpl is sufficiently up-to-date.
|
21
|
+
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
22
|
+
)
|
23
|
+
|
24
|
+
// This is a compile-time assertion that a sufficiently up-to-date version
|
25
|
+
// of the legacy proto package is being used.
|
26
|
+
const _ = proto.ProtoPackageIsVersion4
|
27
|
+
|
28
|
+
type MockEnum int32
|
29
|
+
|
30
|
+
const (
|
31
|
+
MockEnum_UNKNOWN MockEnum = 0
|
32
|
+
MockEnum_FIRST MockEnum = 3
|
33
|
+
)
|
34
|
+
|
35
|
+
// Enum value maps for MockEnum.
|
36
|
+
var (
|
37
|
+
MockEnum_name = map[int32]string{
|
38
|
+
0: "UNKNOWN",
|
39
|
+
3: "FIRST",
|
40
|
+
}
|
41
|
+
MockEnum_value = map[string]int32{
|
42
|
+
"UNKNOWN": 0,
|
43
|
+
"FIRST": 3,
|
44
|
+
}
|
45
|
+
)
|
46
|
+
|
47
|
+
func (x MockEnum) Enum() *MockEnum {
|
48
|
+
p := new(MockEnum)
|
49
|
+
*p = x
|
50
|
+
return p
|
51
|
+
}
|
52
|
+
|
53
|
+
func (x MockEnum) String() string {
|
54
|
+
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
|
55
|
+
}
|
56
|
+
|
57
|
+
func (MockEnum) Descriptor() protoreflect.EnumDescriptor {
|
58
|
+
return file_internal_testdata_testdata_proto_enumTypes[0].Descriptor()
|
59
|
+
}
|
60
|
+
|
61
|
+
func (MockEnum) Type() protoreflect.EnumType {
|
62
|
+
return &file_internal_testdata_testdata_proto_enumTypes[0]
|
63
|
+
}
|
64
|
+
|
65
|
+
func (x MockEnum) Number() protoreflect.EnumNumber {
|
66
|
+
return protoreflect.EnumNumber(x)
|
67
|
+
}
|
68
|
+
|
69
|
+
// Deprecated: Use MockEnum.Descriptor instead.
|
70
|
+
func (MockEnum) EnumDescriptor() ([]byte, []int) {
|
71
|
+
return file_internal_testdata_testdata_proto_rawDescGZIP(), []int{0}
|
72
|
+
}
|
73
|
+
|
74
|
+
type MockMessage struct {
|
75
|
+
state protoimpl.MessageState
|
76
|
+
sizeCache protoimpl.SizeCache
|
77
|
+
unknownFields protoimpl.UnknownFields
|
78
|
+
|
79
|
+
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
80
|
+
Enum MockEnum `protobuf:"varint,2,opt,name=enum,proto3,enum=feedx.internal.testdata.MockEnum" json:"enum,omitempty"`
|
81
|
+
Height uint32 `protobuf:"varint,3,opt,name=height,proto3" json:"height,omitempty"`
|
82
|
+
}
|
83
|
+
|
84
|
+
func (x *MockMessage) Reset() {
|
85
|
+
*x = MockMessage{}
|
86
|
+
if protoimpl.UnsafeEnabled {
|
87
|
+
mi := &file_internal_testdata_testdata_proto_msgTypes[0]
|
88
|
+
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
89
|
+
ms.StoreMessageInfo(mi)
|
90
|
+
}
|
91
|
+
}
|
92
|
+
|
93
|
+
func (x *MockMessage) String() string {
|
94
|
+
return protoimpl.X.MessageStringOf(x)
|
95
|
+
}
|
96
|
+
|
97
|
+
func (*MockMessage) ProtoMessage() {}
|
98
|
+
|
99
|
+
func (x *MockMessage) ProtoReflect() protoreflect.Message {
|
100
|
+
mi := &file_internal_testdata_testdata_proto_msgTypes[0]
|
101
|
+
if protoimpl.UnsafeEnabled && x != nil {
|
102
|
+
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
103
|
+
if ms.LoadMessageInfo() == nil {
|
104
|
+
ms.StoreMessageInfo(mi)
|
105
|
+
}
|
106
|
+
return ms
|
107
|
+
}
|
108
|
+
return mi.MessageOf(x)
|
109
|
+
}
|
110
|
+
|
111
|
+
// Deprecated: Use MockMessage.ProtoReflect.Descriptor instead.
|
112
|
+
func (*MockMessage) Descriptor() ([]byte, []int) {
|
113
|
+
return file_internal_testdata_testdata_proto_rawDescGZIP(), []int{0}
|
114
|
+
}
|
115
|
+
|
116
|
+
func (x *MockMessage) GetName() string {
|
117
|
+
if x != nil {
|
118
|
+
return x.Name
|
119
|
+
}
|
120
|
+
return ""
|
121
|
+
}
|
122
|
+
|
123
|
+
func (x *MockMessage) GetEnum() MockEnum {
|
124
|
+
if x != nil {
|
125
|
+
return x.Enum
|
126
|
+
}
|
127
|
+
return MockEnum_UNKNOWN
|
128
|
+
}
|
129
|
+
|
130
|
+
func (x *MockMessage) GetHeight() uint32 {
|
131
|
+
if x != nil {
|
132
|
+
return x.Height
|
133
|
+
}
|
134
|
+
return 0
|
135
|
+
}
|
136
|
+
|
137
|
+
var File_internal_testdata_testdata_proto protoreflect.FileDescriptor
|
138
|
+
|
139
|
+
var file_internal_testdata_testdata_proto_rawDesc = []byte{
|
140
|
+
0x0a, 0x20, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x64,
|
141
|
+
0x61, 0x74, 0x61, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x70, 0x72, 0x6f,
|
142
|
+
0x74, 0x6f, 0x12, 0x17, 0x66, 0x65, 0x65, 0x64, 0x78, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e,
|
143
|
+
0x61, 0x6c, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x64, 0x61, 0x74, 0x61, 0x22, 0x70, 0x0a, 0x0b, 0x4d,
|
144
|
+
0x6f, 0x63, 0x6b, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61,
|
145
|
+
0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x35,
|
146
|
+
0x0a, 0x04, 0x65, 0x6e, 0x75, 0x6d, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x21, 0x2e, 0x66,
|
147
|
+
0x65, 0x65, 0x64, 0x78, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2e, 0x74, 0x65,
|
148
|
+
0x73, 0x74, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x4d, 0x6f, 0x63, 0x6b, 0x45, 0x6e, 0x75, 0x6d, 0x52,
|
149
|
+
0x04, 0x65, 0x6e, 0x75, 0x6d, 0x12, 0x16, 0x0a, 0x06, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18,
|
150
|
+
0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x06, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x2a, 0x22, 0x0a,
|
151
|
+
0x08, 0x4d, 0x6f, 0x63, 0x6b, 0x45, 0x6e, 0x75, 0x6d, 0x12, 0x0b, 0x0a, 0x07, 0x55, 0x4e, 0x4b,
|
152
|
+
0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, 0x46, 0x49, 0x52, 0x53, 0x54, 0x10,
|
153
|
+
0x03, 0x42, 0x24, 0x5a, 0x22, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f,
|
154
|
+
0x66, 0x65, 0x65, 0x64, 0x78, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x74,
|
155
|
+
0x65, 0x73, 0x74, 0x64, 0x61, 0x74, 0x61, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
156
|
+
}
|
157
|
+
|
158
|
+
var (
|
159
|
+
file_internal_testdata_testdata_proto_rawDescOnce sync.Once
|
160
|
+
file_internal_testdata_testdata_proto_rawDescData = file_internal_testdata_testdata_proto_rawDesc
|
161
|
+
)
|
162
|
+
|
163
|
+
func file_internal_testdata_testdata_proto_rawDescGZIP() []byte {
|
164
|
+
file_internal_testdata_testdata_proto_rawDescOnce.Do(func() {
|
165
|
+
file_internal_testdata_testdata_proto_rawDescData = protoimpl.X.CompressGZIP(file_internal_testdata_testdata_proto_rawDescData)
|
166
|
+
})
|
167
|
+
return file_internal_testdata_testdata_proto_rawDescData
|
168
|
+
}
|
169
|
+
|
170
|
+
var file_internal_testdata_testdata_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
|
171
|
+
var file_internal_testdata_testdata_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
|
172
|
+
var file_internal_testdata_testdata_proto_goTypes = []interface{}{
|
173
|
+
(MockEnum)(0), // 0: feedx.internal.testdata.MockEnum
|
174
|
+
(*MockMessage)(nil), // 1: feedx.internal.testdata.MockMessage
|
175
|
+
}
|
176
|
+
var file_internal_testdata_testdata_proto_depIdxs = []int32{
|
177
|
+
0, // 0: feedx.internal.testdata.MockMessage.enum:type_name -> feedx.internal.testdata.MockEnum
|
178
|
+
1, // [1:1] is the sub-list for method output_type
|
179
|
+
1, // [1:1] is the sub-list for method input_type
|
180
|
+
1, // [1:1] is the sub-list for extension type_name
|
181
|
+
1, // [1:1] is the sub-list for extension extendee
|
182
|
+
0, // [0:1] is the sub-list for field type_name
|
183
|
+
}
|
184
|
+
|
185
|
+
func init() { file_internal_testdata_testdata_proto_init() }
|
186
|
+
func file_internal_testdata_testdata_proto_init() {
|
187
|
+
if File_internal_testdata_testdata_proto != nil {
|
188
|
+
return
|
189
|
+
}
|
190
|
+
if !protoimpl.UnsafeEnabled {
|
191
|
+
file_internal_testdata_testdata_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
192
|
+
switch v := v.(*MockMessage); i {
|
193
|
+
case 0:
|
194
|
+
return &v.state
|
195
|
+
case 1:
|
196
|
+
return &v.sizeCache
|
197
|
+
case 2:
|
198
|
+
return &v.unknownFields
|
199
|
+
default:
|
200
|
+
return nil
|
201
|
+
}
|
202
|
+
}
|
203
|
+
}
|
204
|
+
type x struct{}
|
205
|
+
out := protoimpl.TypeBuilder{
|
206
|
+
File: protoimpl.DescBuilder{
|
207
|
+
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
208
|
+
RawDescriptor: file_internal_testdata_testdata_proto_rawDesc,
|
209
|
+
NumEnums: 1,
|
210
|
+
NumMessages: 1,
|
211
|
+
NumExtensions: 0,
|
212
|
+
NumServices: 0,
|
213
|
+
},
|
214
|
+
GoTypes: file_internal_testdata_testdata_proto_goTypes,
|
215
|
+
DependencyIndexes: file_internal_testdata_testdata_proto_depIdxs,
|
216
|
+
EnumInfos: file_internal_testdata_testdata_proto_enumTypes,
|
217
|
+
MessageInfos: file_internal_testdata_testdata_proto_msgTypes,
|
218
|
+
}.Build()
|
219
|
+
File_internal_testdata_testdata_proto = out.File
|
220
|
+
file_internal_testdata_testdata_proto_rawDesc = nil
|
221
|
+
file_internal_testdata_testdata_proto_goTypes = nil
|
222
|
+
file_internal_testdata_testdata_proto_depIdxs = nil
|
223
|
+
}
|