Commit Graph

32 Commits

Author SHA1 Message Date
Joshua Humphries dfbefc6795 service reflection can lookup enum, enum val, oneof, and field symbols (#1910)
* service reflection can lookup enum, enum val, oneof, and field symbols; cache descriptors

* address feedback: don't use mutex, remove unnecessary conditional, make fileDescContainingExtension a func instead of a method
2018-03-21 16:49:57 -07:00
Menghan Li 8233e124e4 Add new Resolver and Balancer APIs (gRFC L9) (#1408)
- Add package balancer and resolver.
 - Change ClientConn internals to new APIs and adds a wrapper for v1 balancer.
2017-08-31 10:59:09 -07:00
dfawley 25b4a426b4 go-generate pb.go files and check in Travis to make sure they don't change (#1426) 2017-08-17 16:00:51 -07:00
Menghan Li 1d797552ae Add support for grpc.SupportPackageIsVersion3 back (#1331)
* Support byte slice file descriptor as metadata and add SupportPackageIsVersion3 back

* add v3 test, generate testv3.pb.go with old codegen
2017-06-22 13:56:59 -07:00
Jan Tattermusch ddbf6c46a6 autofix license notice 2017-06-08 14:42:19 +02:00
Menghan Li a7fee9febf Use proto.Equal for equalities on Go proto messages (#1204) 2017-04-27 10:19:45 -07:00
Josh Humphries ba8cd6e3e6 fix FileContainingExtension in server reflection 2017-02-09 21:12:29 -05:00
Gyu-Ho Lee 05aaecb59d reflection: check ServerReflectionInfo error 2016-10-28 22:37:37 -07:00
Menghan Li a518fa911d Split methods and streams in service info 2016-07-11 12:09:05 -07:00
Menghan Li 26d2db5487 Add server.GetServiceInfo().
To replace server.ServiceMetadata() and server.AllServiceNames().
2016-06-27 12:01:05 -07:00
Menghan Li 439f11e63d Minor changes
Add copyright
Return proto.Marshal(fd)
Comments
2016-06-27 12:01:05 -07:00
Menghan Li 69c7425a21 Change server.ServiceMetadata to take service name and method name.
And some minor changes.
2016-06-27 12:01:05 -07:00
Menghan Li 1302eb9c41 Minor fixes 2016-06-27 12:01:05 -07:00
Menghan Li cb12010c86 Remove return value idxs []int from fileDescForType() 2016-06-27 12:01:05 -07:00
Menghan Li 99966b0e14 Remove t.Logf 2016-06-27 12:01:05 -07:00
Menghan Li 965636a9b1 Minor changes, comments and test error message 2016-06-27 12:01:05 -07:00
Menghan Li ffd3d5874a Add test for testListServices 2016-06-27 12:01:05 -07:00
Menghan Li ab04d8e500 Add service symbol checking to testFileContainingSymbol 2016-06-27 12:01:05 -07:00
Menghan Li c26f2fb8f2 Remove TestFileDescWireFormatByFilename 2016-06-27 12:01:05 -07:00
Menghan Li 5f5c109f1d Add TestFileDescForType TestFileDescContainingExtension 2016-06-27 12:01:05 -07:00
Menghan Li 864c571f44 Remove mutex and cache 2016-06-27 12:01:05 -07:00
Menghan Li a5a4628ee4 Remove unused functions 2016-06-27 12:01:05 -07:00
Menghan Li 6bda8ed552 Add checking response in reflection end2end tests 2016-06-27 12:01:05 -07:00
Menghan Li c41121a259 Remove filenameToDescMap, replace with proto.FileDescriptor() 2016-06-27 12:01:05 -07:00
Menghan Li ae32a64fc3 Add end2end reflection tests frame, not checking response 2016-06-27 12:01:05 -07:00
Menghan Li 273b7164b3 Change package name and add InstallOnServer() 2016-06-27 12:01:05 -07:00
Menghan Li ffca1d2bce Add fileDescWireFormatByFilename, and handle file_by_filename 2016-06-27 12:01:05 -07:00
Menghan Li 8c8bcdd402 Add allExtensionNumbersForType 2016-06-27 12:01:05 -07:00
Menghan Li 196c123058 Add fileDescContainingExtension 2016-06-27 12:01:05 -07:00
Menghan Li dd2c45bc03 Add filenameForType 2016-06-27 12:01:05 -07:00
Menghan Li 36cbb03cfe Add typeForName nameForType nameForPointer 2016-06-27 12:01:05 -07:00
Menghan Li 15469fce29 Add fileDescForType, tests to be added 2016-06-27 12:01:05 -07:00