...
1
2
3
4
5 package jsonrpc2
6
7 import "golang.org/x/tools/internal/event/keys"
8
9
10 var (
11 Method = keys.NewString("method", "")
12 RPCID = keys.NewString("id", "")
13 RPCDirection = keys.NewString("direction", "")
14 Started = keys.NewInt64("started", "Count of started RPCs.")
15 SentBytes = keys.NewInt64("sent_bytes", "Bytes sent.")
16 ReceivedBytes = keys.NewInt64("received_bytes", "Bytes received.")
17 StatusCode = keys.NewString("status.code", "")
18 Latency = keys.NewFloat64("latency_ms", "Elapsed time in milliseconds")
19 )
20
21 const (
22 Inbound = "in"
23 Outbound = "out"
24 )
25
View as plain text