README ¶ Base Client for Go Features cloudevents grpc http long polling socket How to add config config file is yaml format see common/config/config.yaml struct add see common/config/config.go test add see common/config/config_test.go example of use see client main.go files (grpc-client/main.go, socket-client/main.go, etc.) How to use client prepare run server must be running How to use server cloudevents build go build -o ./bin/cloudevents-client ./cloudevents-client/ run ./bin/cloudevents-client -config-file ./common/config/config.yaml grpc build go build -o ./bin/grpc-client ./grpc-client/ run ./bin/grpc-client -config-file ./common/config/config.yaml log ./common/log/grpc-client_YYYYMMDD.log http build go build -o ./bin/http-client ./http-client/ run ./bin/http-client -config-file ./common/config/config.yaml log ./common/log/http-client_YYYYMMDD.log long-polling build go build -o ./bin/long-polling-client ./long-polling-client/ run ./bin/long-polling-client -config-file ./common/config/config.yaml log ./common/log/long-polling-client_YYYYMMDD.log socket build go build -o ./bin/socket-client ./socket-client/ run ./bin/socket-client -config-file ./common/config/config.yaml log ./common/log/socket-client_YYYYMMDD.log Test and Coverage Test go clean -testcache && go test -cover ./... Coverage make coverage file go clean -testcache && go test -coverprofile=coverage.out -cover ./... convert coverage file to html file go tool cover -html=./coverage.out -o ./coverage.html Expand ▾ Collapse ▴ Directories ¶ Show internal Expand all Path Synopsis cloudevents-client common config Package config provides a struct that can store json type config file Package config provides a struct that can store json type config file log main_sub grpc-client http-client long-polling-client socket-client tcp command udp command Click to show internal directories. Click to hide internal directories.