Proto commits in TykTechnologies/tyk-pump

These 13 commits are when the Protocol Buffers files have changed:

Commit:9984a1e
Author:Kofo Okesola
Committer:GitHub

[TT-9476]: add graphstats to analytics record proto (#736) * addgraphstats to analytics record proto * added proto to go serializer * add serializer * some changes to conditional addition of graphql stats * ran go imports * fix ci

The documentation is generated from this commit.

Commit:e0f692b
Author:Kofo Okesola
Committer:GitHub

[TT-6012] add ApiSchema to analytics record (#474) * add metadata to analytics record * ran go imports * remove metadata and add APISchema string * ignore field in mgo

Commit:53a5457
Author:Kofo Okesola
Committer:Kofo Okesola

parsing request struct

Commit:47af9bd
Author:Sredny M
Committer:Tyk Bot

TT-4699 Feature/analytics serialization (#436) * adding gotiny serialization * adding serialization tests * adding more funcs to analytics Records * fmting * Add analytics * started to implement serializer using standard protobuf * proccesed timestamp fields * added protobuf in the loop to process analytics * update tests * fix collection name on aggregate * expose GenerateApiKeys method so we can use it for testing * implemented requested changes: error handling and optimize conditional * fix compilation issue with serializer test * update timestamp handling * fix assignation of dates * added support for cities * removed go_tiny.go * do not use copy.Copy() method and instead map the structures manually * remove all references to gotiny * move protofiles to /analytics directory * refactor, move some functions as part of analytics record struct * remove some unused code, refactor in protobuf serializer * moved functions to pump * expose GeoIPLookup * fix decoding and fix decoding tests * update deps Co-authored-by: tbuchaillot <tombuchaillot89@gmail.com> Co-authored-by: Matias Insaurralde <matias@insaurral.de> (cherry picked from commit c0bc0e2ab6a646f10a7c37e5d233eb73a90b2a7b)

Commit:c0bc0e2
Author:Sredny M
Committer:GitHub

TT-4699 Feature/analytics serialization (#436) * adding gotiny serialization * adding serialization tests * adding more funcs to analytics Records * fmting * Add analytics * started to implement serializer using standard protobuf * proccesed timestamp fields * added protobuf in the loop to process analytics * update tests * fix collection name on aggregate * expose GenerateApiKeys method so we can use it for testing * implemented requested changes: error handling and optimize conditional * fix compilation issue with serializer test * update timestamp handling * fix assignation of dates * added support for cities * removed go_tiny.go * do not use copy.Copy() method and instead map the structures manually * remove all references to gotiny * move protofiles to /analytics directory * refactor, move some functions as part of analytics record struct * remove some unused code, refactor in protobuf serializer * moved functions to pump * expose GeoIPLookup * fix decoding and fix decoding tests * update deps Co-authored-by: tbuchaillot <tombuchaillot89@gmail.com> Co-authored-by: Matias Insaurralde <matias@insaurral.de>

Commit:848653c
Author:tbuchaillot

unary

Commit:cdb80d7
Author:tbuchaillot

changing AnalyticsService

Commit:c706713
Author:tbuchaillot

changing service

Commit:a60c5f9
Author:tbuchaillot

init

Commit:d5a742b
Author:Tomas Buchaillot
Committer:tbuchaillot

Go modules (#251) ## Description Replace govendor for gomodules for dependency management. ## Related Issue Related #217 ## Motivation and Context <!-- Why is this change required? What problem does it solve? --> ## How This Has Been Tested ./ci-test.sh go build

This commit does not contain any .proto files.

Commit:d633223
Author:Tomas Buchaillot
Committer:GitHub

Go modules (#251) ## Description Replace govendor for gomodules for dependency management. ## Related Issue Related #217 ## Motivation and Context <!-- Why is this change required? What problem does it solve? --> ## How This Has Been Tested ./ci-test.sh go build

This commit does not contain any .proto files.

Commit:e724bc6
Author:Sredny M
Committer:GitHub

Add prefix to logs for production deployments (#171) This branch solves https://github.com/TykTechnologies/product/issues/236 was updated as well the Tyk's repos related to logs, and this should be merged in parallel with the next Pull requests as this depends and use the code contained there: - https://github.com/TykTechnologies/logrus-prefixed-formatter/pull/1 - https://github.com/TykTechnologies/logrus/pull/1 **What was done?** Forced the logger to use Colors so, the information related to the prefix is not lost when they are printed in logs files. Was written a test in _logger/init_test.go_ to check that the prefix is printed in the log file. **How was tested locally?** - Ran tyk-pump with: `go build -i && ./tyk-pump --conf ../my-pump.conf 2>&1 | logger -s -t $(basename $0)4` - From another terminal, check the latest logs: `journalctl -f` - Checked that we have now the prefix printed in logs with no TTY: ![Captura de pantalla de 2019-11-05 12-10-41](https://user-images.githubusercontent.com/4504205/68231581-5456e100-ffc9-11e9-9864-e3b51c83c2c8.png) **About the test** Consist in writting the logs in a file, after that we check if the logs contains the word "prefix" is so, then it Pass, otherwise its a Failed test

Commit:b7eaa75
Author:dencoded
Committer:Leonid Bugaev

Hybrid pump (#83) added changes for https://github.com/TykTechnologies/tyk-pump/issues/80 the same idea - just specify new `"hybrid"` pump in config and will start purging analytics to RPC stack.