Universal API data gathering to the storage solution of your choice (among those implementd :) )
Download the module with:
go get github.com/xgourmandin/slurp
Then you must use it like this :
context, err := slurp.NewContextFactory().CreateContextFromConfig(&apiConfiguration)
if err != nil {
return err
}
engine := slurp.NewSlurpEngine()
engine.SlurpAPI(*context)
Where apiConfiguration
is a slurp.ApiConfiguration
struct