storj/satellite/metainfo
JT Olio 946ec201e2
metainfo: move api keys to part of the request (#3069)
What: we move api keys out of the grpc connection-level metadata on the client side and into the request protobufs directly. the server side still supports both mechanisms for backwards compatibility.

Why: dRPC won't support connection-level metadata. the only thing we currently use connection-level metadata for is api keys. we need to move all information needed by a request into the request protobuf itself for drpc support. check out the .proto changes for the main details.

One fun side-fact: Did you know that protobuf fields 1-15 are special and only use one byte for both the field number and type? Additionally did you know we don't use field 15 anywhere yet? So the new request header will use field 15, and should use field 15 on all protobufs going forward.

Please describe the tests: all existing tests should pass

Please describe the performance impact: none
2019-09-19 10:19:29 -06:00
..
batch.go metainfo: move api keys to part of the request (#3069) 2019-09-19 10:19:29 -06:00
config.go all: add archview annotations (#2964) 2019-09-10 16:24:16 +03:00
db_test.go Jg/add tests (#2547) 2019-07-15 09:30:26 -07:00
db.go all: add archview annotations (#2964) 2019-09-10 16:24:16 +03:00
loop_test.go satellite: remove remote/inline file from BucketTally (#3041) 2019-09-13 16:51:41 +03:00
loop.go uplink/satellite: fix for case when inline segment is last one (#3062) 2019-09-19 01:18:14 +02:00
metainfo_test.go metainfo: move api keys to part of the request (#3069) 2019-09-19 10:19:29 -06:00
metainfo.go metainfo: move api keys to part of the request (#3069) 2019-09-19 10:19:29 -06:00
service_test.go update testplanet with libuplink (#2618) 2019-07-23 07:58:45 -07:00
service.go satellite/repair: add metric trackers for segment age before repair (#3056) 2019-09-17 15:18:48 -04:00
validation.go metainfo: move api keys to part of the request (#3069) 2019-09-19 10:19:29 -06:00