I am currently trying to implement firehose into tyk-pump. Im having an issue where its not recognizing the new pump type. In the pumps/init.go I have added the following: AvailablePumps["firehose"] = &FirehosePump{}
In pumps/pump.go I have added case "firehose": return AvailablePumps["firehose"], nil
and i have created a new file called pumps/firehose.go with a New(), GetName(), Init() and WriteData() methods.
In the pump.conf ive added a “firehose” key wtih the name as firehose, and the respected meta data and its shooting me a [Sep 9 10:17:04] ERROR main: Pump load error (skipping): Not found
I can debug it, and see that “firehose” is whats being passed to the switch statement, but its skipping it and returning the error. I have no clue where to go from here with it. Is there something im missing?
I think your changes are fine, it could be something related to GOPATH, note that there are different Go packages in Tyk Pump, so one package, the main one is: github.com/TykTechnologies/tyk-pump.
The other one is github.com/TykTechnologies/tyk-pump/pumps, so I’m guessing that your changes don’t get build, and you’re still building the unmodified version of this package.