Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nrc/grpc-snoop
A tool to capture TiKV gRPC messages
https://github.com/nrc/grpc-snoop
Last synced: 11 days ago
JSON representation
A tool to capture TiKV gRPC messages
- Host: GitHub
- URL: https://github.com/nrc/grpc-snoop
- Owner: nrc
- Created: 2019-05-19T22:08:28.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-05-20T03:40:43.000Z (over 5 years ago)
- Last Synced: 2024-10-28T20:47:10.584Z (about 2 months ago)
- Language: Go
- Size: 6.84 KB
- Stars: 4
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# grpc-snoop
A tool to capture TiKV gRPC messages.
## Building
Clone outside of your `$GOPATH`.
```bash
go build
```## Running
```
$ go run tikv-assembly.go -f "port 20160" -i lo0
2018/12/29 20:17:17 Starting capture on interface "lo0"
2018/12/29 20:17:17 reading in packets
2018/12/29 20:17:26 127.0.0.1:64989 -> 127.0.0.1:20160 /tikvpb.Tikv/KvPrewrite context: peer: > mutations: primary_lock:"usertable:a" start_version:405297128206237697 lock_ttl:3000
2018/12/29 20:17:26 127.0.0.1:20160 -> 127.0.0.1:64989 /tikvpb.Tikv/KvPrewrite
2018/12/29 20:17:26 127.0.0.1:64995 -> 127.0.0.1:20160 /tikvpb.Tikv/KvCommit context: peer: > start_version:405297128206237697 keys:"usertable:a" commit_version:405297128206237698
2018/12/29 20:17:26 127.0.0.1:20160 -> 127.0.0.1:64995 /tikvpb.Tikv/KvCommit
2018/12/29 20:17:29 127.0.0.1:64999 -> 127.0.0.1:20160 /tikvpb.Tikv/KvGet context: peer: > key:"usertable:a" version:405297128901443585
2018/12/29 20:17:29 127.0.0.1:20160 -> 127.0.0.1:64999 /tikvpb.Tikv/KvGet value:"\010\000\002\0020"
```