5e65a46be3
metadata: allow to remove key from metadata ( #1453 )
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2020-03-31 22:55:33 +03:00
3d7d5ce6b4
api: add static router and improve path parser in rpc handler ( #1437 )
...
* api: add static router and improve path parser in rpc handler
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
* expose metadata context key to be able to get unmodified map keys
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
* server/grpc: fix jsonpb codec for protobuf msg
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
* api/handler/rpc: write 204 status code when rsp is nil
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
* api/handler/rpc: add check for nil response for non javascript
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2020-03-30 09:04:59 +01:00
Asim Aslam
e204f3e2e8
Add metadata Get method ( #1425 )
2020-03-26 18:50:00 +00:00
5b0175c2e5
allocations improvements and tunnel fixes ( #1248 )
...
* reduce allocations in tunnel code
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
* another allocation fix
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
* allocate maps with len if it known
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
* allocate key for send once
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2020-02-24 14:15:20 +00:00
d1e25e7ead
add metadata set method ( #1232 )
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2020-02-21 23:04:47 +03:00
Janos Dobronszki
92571db693
Tracing: traces now correctly form a tree ( #1170 )
...
* First cut of trace
* Dial it back yo
* Defensive programming
2020-02-06 17:22:16 +00:00
Asim Aslam
60ea537bbc
upper case the metadata
2019-12-31 13:37:29 +00:00
Asim Aslam
65b1283459
add metadata.Get(context, key) as short hand
2019-11-11 09:13:02 +00:00
Asim Aslam
99b410c81b
fix metadata test
2019-10-25 23:28:43 +01:00
Asim Aslam
92b7d2db3b
Rename to Merge
2019-10-25 23:27:59 +01:00
Sumanth Chinthagunta
1c6b85e05d
AppendContext with overwrite flag
2019-10-25 08:27:28 -07:00
Sumanth Chinthagunta
1f658cfbff
adding PatchContext - this will create new context with original + patch metadata
2019-10-24 17:51:54 -07:00
Asim Aslam
617db003d4
Copy metadata
2019-01-17 09:40:49 +00:00
Asim Aslam
c9b40cb33b
switch to stdlib context
2018-03-03 11:53:52 +00:00
Asim Aslam
71d717a06d
strip doc.go files
2016-12-14 15:41:48 +00:00
Asim
1254a87286
Add package comments
2016-05-24 22:22:46 +01:00
Asim
089c457d6c
Appending to metadata is a side effect. Let's not do that anymore.
2016-04-15 16:45:59 +01:00
Asim
bbcbd2a446
Basic metadata retrieval test
2016-03-14 18:32:08 +00:00
Asim
8b9faefd92
Add metadata comment
2016-01-30 21:17:44 +00:00
Asim
b9f4e17d4c
Meta key change
2016-01-28 18:24:56 +00:00
Asim
9ae0956cea
Move context to metadata
2016-01-28 17:55:28 +00:00