Native Go bindings for the D-Bus message bus
open sourceBSD-2-Clausefree
godbus/dbus is a native Go implementation of the D-Bus message protocol: Go client bindings for the D-Bus message bus system. Its API is Go-like, with channels for signals and asynchronous method calls and connections that are safe across goroutines, and subpackages help with the introspection and properties interfaces. Projects such as go-systemd, Fyne and TinyGo's bluetooth package use it.
Problems it solves
- call a D-Bus service such as systemd or NetworkManager from Go
- listen for D-Bus signals in a Go program
- expose a Go object on the D-Bus session bus
Features
- complete native implementation of the D-Bus message protocol
- channels for signals and asynchronous method calls
- goroutine-safe connections
- subpackages for the introspection and properties interfaces
Limitations
- Its API is considered unstable and may change without notice.1
Alternatives
The same job
These do what godbus/dbus does.
- go-systemd Go bindings for systemd socket activation, sd_notify, journald, D-Bus and unit files
