Dendrite Library

18 views
Skip to first unread message

Ben Johnson

unread,
Apr 23, 2013, 1:50:58 PM4/23/13
to dendri...@googlegroups.com
Dendrite looks awesome! Even better that it's in Go.

Are there any docs on creating new destinations? Also, I was going to write something similar for an importer for my database (http://skydb.io/) but it'd be nice to leverage code in Dendrite. Are there any plans to move the Dendrite core into its own library?


Ben Johnson

Kyle Maxwell

unread,
Apr 23, 2013, 2:17:48 PM4/23/13
to dendri...@googlegroups.com
Destinations are in the files io.go (for the transport protocols) and encoder.go (for the map->string encoding).  It's not terribly well documented, but you basically need to just create an io.ReadWriteCloser and a dendrite.Encoder, which is an interface for the single method: Encode(out map[string]Column, writer io.Writer).

You guys look like you might be similar to librato (json over http, with possible batching).  I have a pull request for librato that you could cargo-cult:  https://github.com/onemorecloud/dendrite/pull/21/files

I haven't really thought much about making dendrite-core as a library.  What are the use cases?
Reply all
Reply to author
Forward
0 new messages