# README
Base Client for Go
Features
- grpc
- http
- long-polling
- socket
How to add config
- json type config file add
- struct add
- see config/Sample.go
- test add
- see Sample_test.go
- example of use
- socketClientConfig of socket-client/main.go
How to use client
- prepare
- run
- server must be running
- run
- cloudevents
- build
go build -o ./bin/cloudevents-client ./cloudevents-client/
- run
./bin/cloudevents-client -config-file ./config/CloudEventsClient.config
- build
- grpc
- build
go build -o ./bin/grpc-client ./grpc-client/
- run
./bin/grpc-client -config_file ./config/GrpcClient.config
- log
./log/grpc-client_YYYYMMDD.log
- build
- http
- build
go build -o ./bin/http-client ./http-client/
- run
./bin/http-client -config_file ./config/HttpClient.config
- log
./log/http-client_YYYYMMDD.log
- build
- long-polling
- build
go build -o ./bin/long-polling-client ./long-polling-client/
- run
./bin/long-polling-client -config_file ./config/LongPollingClient.config
- log
./log/long-polling-client_YYYYMMDD.log
- build
- socket
- build
go build -o ./bin/socket-client ./socket-client/
- run
./bin/socket-client -config_file ./config/SocketClient.config
- log
./log/socket-client_YYYYMMDD.log
- build
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
- make coverage file
# Packages
No description provided by the author
Package config provides a struct that can store json type config file.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author