Skip to content

How to build query? #4

Answered by jbguerraz
vigith asked this question in Q&A
Discussion options

You must be logged in to vote

Hello @vigith !

Thank you for your question :)
I've just pushed an exampe for building structures https://github.com/grafadruid/go-druid/blob/master/examples/main.go
I've moved examples from parsing json to structures there https://github.com/grafadruid/go-druid/blob/master/examples/fromjson/main.go
Hope this helps :)

NB: You can chain methods calls like f := filter.NewSelector().SetDimension("country").SetValue("France") or you can go the one line per method call way

f := filter.NewSelector()
f.SetDimension("country")
f.SetValue("France")

Enjoy!

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by vigith
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants