Re: [systemd-devel] Soliciting feedback for golang bindings to the systemd journal C API

2014-08-12 Thread Brandon Philips
Hey Dan- On Thu, Jun 19, 2014 at 12:37 PM, Dan Mace wrote: > This is on my backburner at the moment while I work on some other things. Did you ever try things out with Go 1.3? Thanks! Brandon ___ systemd-devel mailing list systemd-devel@lists.freedes

Re: [systemd-devel] Soliciting feedback for golang bindings to the systemd journal C API

2014-06-19 Thread Zbigniew Jędrzejewski-Szmek
On Thu, Jun 19, 2014 at 12:28:06PM -0700, Brandon Philips wrote: > On Sat, Jun 14, 2014 at 8:13 AM, Zbigniew Jędrzejewski-Szmek > wrote: > > I think that designing the api in steps like this will make it harder > > to get a consistent design. The journal api is rather small, so I don't > > think i

Re: [systemd-devel] Soliciting feedback for golang bindings to the systemd journal C API

2014-06-19 Thread Brandon Philips
On Thu, Jun 19, 2014 at 12:37 PM, Dan Mace wrote: > This is on my backburner at the moment while I work on some other things. > Hitting the segfault while testing our primary use case and being unable to > reproduce the error made me nervous enough that I don't feel comfortable > promoting any

Re: [systemd-devel] Soliciting feedback for golang bindings to the systemd journal C API

2014-06-19 Thread Dan Mace
- Original Message - > From: "Brandon Philips" > To: "Zbigniew Jędrzejewski-Szmek" > Cc: "Dan Mace" , "systemd Mailing List" > , > appinfra-l...@redhat.com > Sent: Thursday, June 19, 2014 3:28:06 PM > Subject: Re: [systemd-dev

Re: [systemd-devel] Soliciting feedback for golang bindings to the systemd journal C API

2014-06-19 Thread Brandon Philips
On Sat, Jun 14, 2014 at 8:13 AM, Zbigniew Jędrzejewski-Szmek wrote: > I think that designing the api in steps like this will make it harder > to get a consistent design. The journal api is rather small, so I don't > think it is hard to cover most of it in the initial design. In my > experience, ge

Re: [systemd-devel] Soliciting feedback for golang bindings to the systemd journal C API

2014-06-14 Thread Zbigniew Jędrzejewski-Szmek
On Mon, Jun 09, 2014 at 02:56:24PM -0400, Dan Mace wrote: > Hello! > > We've been working on golang bindings to the systemd journal interface > (sd-journal.h), as well as a higher level go API which builds on the > bindings. The immediate goal is to replace the use of forked calls to > journa

Re: [systemd-devel] Soliciting feedback for golang bindings to the systemd journal C API

2014-06-11 Thread Lennart Poettering
On Tue, 10.06.14 10:13, Brandon Philips (bran...@ifup.co) wrote: > > Can you please point me to the implementation? All I've seen is this: > > > > https://github.com/coreos/go-systemd/blob/master/journal/send.go > > > > Which only handles writes via the Unix socket. The implementation we're >

Re: [systemd-devel] Soliciting feedback for golang bindings to the systemd journal C API

2014-06-10 Thread Dan Mace
- Original Message - > From: "Brandon Philips" > To: "Dan Mace" > Cc: appinfra-l...@redhat.com, systemd-devel@lists.freedesktop.org > Sent: Tuesday, June 10, 2014 1:08:59 PM > Subject: Re: [systemd-devel] Soliciting feedback for golang bindings to the

Re: [systemd-devel] Soliciting feedback for golang bindings to the systemd journal C API

2014-06-10 Thread Brandon Philips
On Tue, Jun 10, 2014 at 6:07 AM, Dan Mace wrote: >> Subject: Re: [systemd-devel] Soliciting feedback for golang bindings to the >> systemd journal C API >> >> The CoreOS crew has already done most of this work by writing a native >> Go implementation (rather than wr

Re: [systemd-devel] Soliciting feedback for golang bindings to the systemd journal C API

2014-06-10 Thread Brandon Philips
On Mon, Jun 9, 2014 at 11:56 AM, Dan Mace wrote: > http://fpaste.org/107299/14019224/ Hrm, odd. Was it with the given tests? I will try it out and see if I can reproduce. I don't see anything immediately wrong in the code. Thanks, Brandon ___ syste

Re: [systemd-devel] Soliciting feedback for golang bindings to the systemd journal C API

2014-06-10 Thread David Timothy Strauss
On Tue, Jun 10, 2014 at 6:07 AM, Dan Mace wrote: > Which only handles writes via the Unix socket. The implementation we're > prototyping supports journal queries in ways that (to my knowledge) aren't > possible without either forking to external tools (e.g. journalctl) or > linking to sd-journ

Re: [systemd-devel] Soliciting feedback for golang bindings to the systemd journal C API

2014-06-10 Thread Dan Mace
- Original Message - > From: "David Timothy Strauss" > To: "Dan Mace" > Cc: appinfra-l...@redhat.com, "systemd Mailing List" > > Sent: Monday, June 9, 2014 8:29:11 PM > Subject: Re: [systemd-devel] Soliciting feedback for golang bindings

Re: [systemd-devel] Soliciting feedback for golang bindings to the systemd journal C API

2014-06-09 Thread David Timothy Strauss
The CoreOS crew has already done most of this work by writing a native Go implementation (rather than wrapping the C APIs). ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/systemd-devel

[systemd-devel] Soliciting feedback for golang bindings to the systemd journal C API

2014-06-09 Thread Dan Mace
Hello! We've been working on golang bindings to the systemd journal interface (sd-journal.h), as well as a higher level go API which builds on the bindings. The immediate goal is to replace the use of forked calls to journalctl in a project. To that end, we've been wrapping only the subset o