/go-gobok

Store and Search tag-msg using Go, gRPC and Postgres

Primary LanguageGoMIT LicenseMIT

Go-Gobok

Gobok is a malay word shortformed of Gerobok which translate as Cupboard/Shelve/Closet.

what is this project about?

A test project to use following:

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

how to run?

  1. configure config.yaml

    $ cp config.yaml.example config.yaml
    $ vi config.yaml

    Default setting will be:

    • user: postgres
    • database: postgres
  2. run the server.

    $ go run server/*.go
  3. run put client to save data

    $ go run client/put.go "127.0.0.1" "" "tag1=value" "testing go-gobok"
  4. run search client to search data

    $ go run client/search.go "" "" "tag1=value"

note:

  • test and benchmark only for utils at the moment