github.com/pingcap/ticdc@v0.0.0-20220526033649-485a10ef2652/proto/generate-proto.sh (about)

     1  #!/usr/bin/env bash
     2  
     3  echo "generate canal protocol code..."
     4  
     5  [ ! -d ./canal ] && mkdir ./canal
     6  [ ! -d ./cdclog ] && mkdir ./cdclog
     7  
     8  protoc --gofast_out=./canal EntryProtocol.proto
     9  protoc --gofast_out=./canal CanalProtocol.proto