Skip to content

Instantly share code, notes, and snippets.

@davidbirdsong
Created February 8, 2014 06:51
Show Gist options
  • Select an option

  • Save davidbirdsong/8877719 to your computer and use it in GitHub Desktop.

Select an option

Save davidbirdsong/8877719 to your computer and use it in GitHub Desktop.
heka protobuf directly from proto.Unmarshal
//ev.Event.Value is []byte from kafka
err = proto.Unmarshal(ev.Event.Value, pack.Message)
if err != nil {
ir.LogError(err)
pack.Recycle()
ev.Recycle()
continue
}
pack.Decoded = true
ir.Inject(pack)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment