Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
D
dex
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
dex
Commits
ab102b81
Commit
ab102b81
authored
Dec 01, 2017
by
Eric Chiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
*: revendor
parent
35063da4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
50 additions
and
25 deletions
+50
-25
glide.lock
glide.lock
+6
-3
encode.go
vendor/github.com/golang/protobuf/proto/encode.go
+2
-2
lib.go
vendor/github.com/golang/protobuf/proto/lib.go
+0
-1
text_parser.go
vendor/github.com/golang/protobuf/proto/text_parser.go
+1
-1
descriptor.pb.go
...golang/protobuf/protoc-gen-go/descriptor/descriptor.pb.go
+0
-0
generator.go
....com/golang/protobuf/protoc-gen-go/generator/generator.go
+0
-0
plugin.pb.go
...hub.com/golang/protobuf/protoc-gen-go/plugin/plugin.pb.go
+0
-0
any.pb.go
vendor/github.com/golang/protobuf/ptypes/any/any.pb.go
+41
-18
No files found.
glide.lock
View file @
ab102b81
hash:
322a63b37abfe42807c2249c7d7b18dfb508c5548853732cf55c0c36a7688da5
updated: 2017-1
0-31T14:32:36.104478036Z
hash:
aa8fb290b0e14af4bf4d4cae250ce66561c819a9cdd6447a0432de26f9216318
updated: 2017-1
1-30T16:40:26.928155912-08:00
imports:
- name: github.com/beevik/etree
version: 4cd0dd976db869f817248477718071a28e978df0
...
...
@@ -25,11 +25,14 @@ imports:
- name: github.com/go-sql-driver/mysql
version: 0b58b37b664c21f3010e836f1b931e1d0b0b0685
- name: github.com/golang/protobuf
version:
2bba0603135d7d7f5cb73b2125beeda19c09f4ef
version:
1e59b77b52bf8e4b449a57e6f79f21226d571845
subpackages:
- proto
- protoc-gen-go
- protoc-gen-go/descriptor
- protoc-gen-go/generator
- protoc-gen-go/grpc
- protoc-gen-go/plugin
- ptypes/any
- name: github.com/gorilla/context
version: aed02d124ae4a0e94fea4541c8effd05bf0c8296
...
...
vendor/github.com/golang/protobuf/proto/encode.go
View file @
ab102b81
...
...
@@ -174,11 +174,11 @@ func sizeFixed32(x uint64) int {
// This is the format used for the sint64 protocol buffer type.
func
(
p
*
Buffer
)
EncodeZigzag64
(
x
uint64
)
error
{
// use signed number to get arithmetic right shift.
return
p
.
EncodeVarint
(
uint64
((
x
<<
1
)
^
uint64
((
int64
(
x
)
>>
63
)
)))
return
p
.
EncodeVarint
(
(
x
<<
1
)
^
uint64
((
int64
(
x
)
>>
63
)))
}
func
sizeZigzag64
(
x
uint64
)
int
{
return
sizeVarint
(
uint64
((
x
<<
1
)
^
uint64
((
int64
(
x
)
>>
63
)
)))
return
sizeVarint
(
(
x
<<
1
)
^
uint64
((
int64
(
x
)
>>
63
)))
}
// EncodeZigzag32 writes a zigzag-encoded 32-bit integer
...
...
vendor/github.com/golang/protobuf/proto/lib.go
View file @
ab102b81
...
...
@@ -73,7 +73,6 @@ for a protocol buffer variable v:
When the .proto file specifies `syntax="proto3"`, there are some differences:
- Non-repeated fields of non-message type are values instead of pointers.
- Getters are only generated for message and oneof fields.
- Enum types do not get an Enum method.
The simplest way to describe this is to see an example.
...
...
vendor/github.com/golang/protobuf/proto/text_parser.go
View file @
ab102b81
...
...
@@ -865,7 +865,7 @@ func (p *textParser) readAny(v reflect.Value, props *Properties) error {
return
p
.
readStruct
(
fv
,
terminator
)
case
reflect
.
Uint32
:
if
x
,
err
:=
strconv
.
ParseUint
(
tok
.
value
,
0
,
32
);
err
==
nil
{
fv
.
SetUint
(
uint64
(
x
)
)
fv
.
SetUint
(
x
)
return
nil
}
case
reflect
.
Uint64
:
...
...
vendor/github.com/golang/protobuf/protoc-gen-go/descriptor/descriptor.pb.go
0 → 100644
View file @
ab102b81
This diff is collapsed.
Click to expand it.
vendor/github.com/golang/protobuf/protoc-gen-go/generator/generator.go
0 → 100644
View file @
ab102b81
This diff is collapsed.
Click to expand it.
vendor/github.com/golang/protobuf/protoc-gen-go/plugin/plugin.pb.go
0 → 100644
View file @
ab102b81
This diff is collapsed.
Click to expand it.
vendor/github.com/golang/protobuf/ptypes/any/any.pb.go
View file @
ab102b81
// Code generated by protoc-gen-go.
// source: github.com/golang/protobuf/ptypes/any/any.proto
// DO NOT EDIT!
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/protobuf/any.proto
/*
Package any is a generated protocol buffer package.
It is generated from these files:
g
ithub.com/golang/protobuf/ptypes/any
/any.proto
g
oogle/protobuf
/any.proto
It has these top-level messages:
Any
...
...
@@ -63,6 +62,16 @@ const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
// any.Unpack(foo)
// ...
//
// Example 4: Pack and unpack a message in Go
//
// foo := &pb.Foo{...}
// any, err := ptypes.MarshalAny(foo)
// ...
// foo := &pb.Foo{}
// if err := ptypes.UnmarshalAny(any, foo); err != nil {
// ...
// }
//
// The pack methods provided by protobuf library will by default use
// 'type.googleapis.com/full.type.name' as the type URL and the unpack
// methods only use the fully qualified type name after the last '/'
...
...
@@ -132,24 +141,38 @@ func (*Any) ProtoMessage() {}
func
(
*
Any
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor0
,
[]
int
{
0
}
}
func
(
*
Any
)
XXX_WellKnownType
()
string
{
return
"Any"
}
func
(
m
*
Any
)
GetTypeUrl
()
string
{
if
m
!=
nil
{
return
m
.
TypeUrl
}
return
""
}
func
(
m
*
Any
)
GetValue
()
[]
byte
{
if
m
!=
nil
{
return
m
.
Value
}
return
nil
}
func
init
()
{
proto
.
RegisterType
((
*
Any
)(
nil
),
"google.protobuf.Any"
)
}
func
init
()
{
proto
.
RegisterFile
(
"g
ithub.com/golang/protobuf/ptypes/any
/any.proto"
,
fileDescriptor0
)
}
func
init
()
{
proto
.
RegisterFile
(
"g
oogle/protobuf
/any.proto"
,
fileDescriptor0
)
}
var
fileDescriptor0
=
[]
byte
{
// 18
7
bytes of a gzipped FileDescriptorProto
0x1f
,
0x8b
,
0x08
,
0x00
,
0x00
,
0x0
9
,
0x6e
,
0x88
,
0x02
,
0xff
,
0xe2
,
0xd2
,
0x4f
,
0xcf
,
0x2c
,
0xc9
,
0x
28
,
0x4d
,
0xd2
,
0x4b
,
0xce
,
0xcf
,
0xd5
,
0x4f
,
0xcf
,
0xcf
,
0x49
,
0xcc
,
0x4b
,
0xd7
,
0x2f
,
0x28
,
0x
ca
,
0x2f
,
0xc9
,
0x4f
,
0x2a
,
0x4d
,
0xd3
,
0x2f
,
0x28
,
0xa9
,
0x2c
,
0x48
,
0x2d
,
0xd6
,
0x4f
,
0xcc
,
0x
ab
,
0x04
,
0x61
,
0x3d
,
0xb0
,
0xb8
,
0x10
,
0x7f
,
0x7a
,
0x7e
,
0x7e
,
0x7a
,
0x4e
,
0xaa
,
0x1e
,
0x4c
,
0x
95
,
0x92
,
0x19
,
0x17
,
0xb3
,
0x63
,
0x5e
,
0xa5
,
0x90
,
0x24
,
0x17
,
0x07
,
0x48
,
0x79
,
0x7c
,
0x69
,
0x
51
,
0x8e
,
0x04
,
0xa3
,
0x02
,
0xa3
,
0x06
,
0x67
,
0x10
,
0x3b
,
0x88
,
0x1f
,
0x5a
,
0x94
,
0x23
,
0x24
,
0xc
2
,
0xc5
,
0x5a
,
0x96
,
0x98
,
0x53
,
0x9a
,
0x2a
,
0xc1
,
0xa4
,
0xc0
,
0xa8
,
0xc1
,
0x13
,
0x04
,
0xe1
,
0x
38
,
0x15
,
0x71
,
0x09
,
0x27
,
0xe7
,
0xe7
,
0xea
,
0xa1
,
0x19
,
0xe7
,
0xc4
,
0xe1
,
0x98
,
0x57
,
0x19
,
0x
00
,
0xe2
,
0x04
,
0x30
,
0x46
,
0xa9
,
0x12
,
0xe5
,
0xb8
,
0x05
,
0x8c
,
0x8c
,
0x8b
,
0x98
,
0x98
,
0xdd
,
0x
03
,
0x9c
,
0x56
,
0x31
,
0xc9
,
0xb9
,
0x43
,
0x4c
,
0x0b
,
0x80
,
0xaa
,
0xd2
,
0x0b
,
0x4f
,
0xcd
,
0xc9
,
0x
f1
,
0xce
,
0xcb
,
0x2f
,
0xcf
,
0x0b
,
0x01
,
0xa9
,
0x4e
,
0x62
,
0x03
,
0x6b
,
0x37
,
0x06
,
0x04
,
0x00
,
0x
00
,
0xff
,
0xff
,
0xc6
,
0x4d
,
0x03
,
0x23
,
0xf6
,
0x00
,
0x00
,
0x00
,
// 18
5
bytes of a gzipped FileDescriptorProto
0x1f
,
0x8b
,
0x08
,
0x00
,
0x00
,
0x0
0
,
0x00
,
0x00
,
0x02
,
0xff
,
0xe2
,
0x92
,
0x4c
,
0xcf
,
0xcf
,
0x4f
,
0x
cf
,
0x49
,
0xd5
,
0x2f
,
0x28
,
0xca
,
0x2f
,
0xc9
,
0x4f
,
0x2a
,
0x4d
,
0xd3
,
0x4f
,
0xcc
,
0xab
,
0xd4
,
0x
03
,
0x73
,
0x84
,
0xf8
,
0x21
,
0x52
,
0x7a
,
0x30
,
0x29
,
0x25
,
0x33
,
0x2e
,
0x66
,
0xc7
,
0xbc
,
0x4a
,
0x
21
,
0x49
,
0x2e
,
0x8e
,
0x92
,
0xca
,
0x82
,
0xd4
,
0xf8
,
0xd2
,
0xa2
,
0x1c
,
0x09
,
0x46
,
0x05
,
0x46
,
0x
0d
,
0xce
,
0x20
,
0x76
,
0x10
,
0x3f
,
0xb4
,
0x28
,
0x47
,
0x48
,
0x84
,
0x8b
,
0xb5
,
0x2c
,
0x31
,
0xa7
,
0x
34
,
0x55
,
0x82
,
0x49
,
0x81
,
0x51
,
0x83
,
0x27
,
0x08
,
0xc2
,
0x71
,
0xca
,
0xe7
,
0x12
,
0x4e
,
0xce
,
0xc
f
,
0xd5
,
0x43
,
0x33
,
0xce
,
0x89
,
0xc3
,
0x31
,
0xaf
,
0x32
,
0x00
,
0xc4
,
0x09
,
0x60
,
0x8c
,
0x52
,
0x
4d
,
0xcf
,
0x2c
,
0xc9
,
0x28
,
0x4d
,
0xd2
,
0x4b
,
0xce
,
0xcf
,
0xd5
,
0x4f
,
0xcf
,
0xcf
,
0x49
,
0xcc
,
0x
4b
,
0x47
,
0xb8
,
0xa8
,
0x00
,
0x64
,
0x7a
,
0x31
,
0xc8
,
0x61
,
0x8b
,
0x98
,
0x98
,
0xdd
,
0x03
,
0x9c
,
0x
56
,
0x31
,
0xc9
,
0xb9
,
0x43
,
0x8c
,
0x0a
,
0x80
,
0x2a
,
0xd1
,
0x0b
,
0x4f
,
0xcd
,
0xc9
,
0xf1
,
0xce
,
0x
cb
,
0x2f
,
0xcf
,
0x0b
,
0x01
,
0x29
,
0x4d
,
0x62
,
0x03
,
0xeb
,
0x35
,
0x06
,
0x04
,
0x00
,
0x00
,
0xff
,
0x
ff
,
0x13
,
0xf8
,
0xe8
,
0x42
,
0xdd
,
0x00
,
0x00
,
0x00
,
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment