Peer node implementation with Golang and gRPC.
- Go1.19
- gRPC
package | description |
---|---|
logger | Print colorized message |
model | Define struct Peer , interface Dial |
msg | Code generated by protoc-gen-go-grpc |
peer | Implementation of Server and Client |
main | Make peers and run |
Client
ofSourcePeer
runsMessageSend
.MessageSend
creates a new connection withDestinationPeer
using itsPort
.MessageSend
records the request to csv file.MessageSend
returns a response.