Gobok is a malay word shortformed of Gerobok which translate as Cupboard/Shelve/Closet.
A test project to use following:
- gRPC on go (https://github.com/grpc/grpc-go)
- Go Postgres driver (https://github.com/go-pg/pg)
- configuration (https://github.com/spf13/viper)
- loging (https://github.com/uber-go/zap)
We have two gRPC service:
- Put - save client ip, server ip, tags and messages
- Search - search by client ip, server ip, tags and return all matched records
-
configure config.yaml
$ cp config.yaml.example config.yaml $ vi config.yaml
Default setting will be:
- user: postgres
- database: postgres
-
run the server.
$ go run server/*.go
-
run put client to save data
$ go run client/put.go "127.0.0.1" "" "tag1=value" "testing go-gobok"
-
run search client to search data
$ go run client/search.go "" "" "tag1=value"
- test and benchmark only for utils at the moment