Native Go bindings for D-Bus
Go
Switch branches/tags
Clone or download
muesli and jsouthworth Bumped Go version requirement to 1.7 in README
Since godbus now uses the `context` package, the actual required version got bumped to Go 1.7.
Latest commit 46d8b1f Jul 22, 2018
Permalink
Failed to load latest commit information.
_examples Add ANONYMOUS auth Apr 9, 2018
introspect Merge pull request #35 from kyrofa/feature/34/subtree_support Sep 10, 2015
prop Support passing a context to BusOject Call and Go May 1, 2018
.travis.yml Support passing a context to BusOject Call and Go May 1, 2018
CONTRIBUTING.md doc: add CONTRIBUTING.md Jan 22, 2015
LICENSE Fix encoding alignment logic. Apr 16, 2015
MAINTAINERS MAINTAINERS: add John Southworth Aug 25, 2016
README.markdown Bumped Go version requirement to 1.7 in README Jul 22, 2018
auth.go Refactor send Feb 1, 2018
auth_anonymous.go Add ANONYMOUS auth Apr 9, 2018
auth_external.go Seperate private and shared connections May 16, 2013
auth_sha1.go Seperate private and shared connections May 16, 2013
call.go Support passing a context to BusOject Call and Go May 1, 2018
conn.go Support passing a context to BusOject Call and Go May 1, 2018
conn_darwin.go system bus adress lookup was not system specific May 8, 2017
conn_other.go fix import Apr 26, 2018
conn_test.go Fix Object.Call blocking Aug 29, 2017
conn_unix.go Allow to use dbus on windows Apr 26, 2018
conn_windows.go Allow to use dbus on windows Apr 26, 2018
dbus.go Rework support for more go types. Mar 3, 2017
decoder.go Fix decoder for arrays of structs Jun 28, 2018
decoder_test.go Fix decoder for arrays of structs Jun 28, 2018
default_handler.go Fix race in object export. May 31, 2018
doc.go Add support for more of go's basic types Jan 26, 2017
encoder.go Add support for more of go's basic types Jan 26, 2017
encoder_test.go Add ANONYMOUS auth Apr 9, 2018
examples_test.go Improve and correct documentation Apr 1, 2013
export.go Refactor send Feb 1, 2018
export_test.go Add test to validate introspection of exported subpaths Feb 25, 2016
homedir.go Add static_build tag which avoids user.Current() Mar 27, 2014
homedir_dynamic.go Add static_build tag which avoids user.Current() Mar 27, 2014
homedir_static.go Add static_build tag which avoids user.Current() Mar 27, 2014
message.go Add support for the ALLOW_INTERACTIVE_AUTHORIZATION flag Mar 30, 2016
object.go Support passing a context to BusOject Call and Go May 1, 2018
object_test.go Support passing a context to BusOject Call and Go May 1, 2018
proto_test.go Add test cases for empty arrays and maps Nov 13, 2013
server_interfaces.go Change the DBusError interface Nov 18, 2016
server_interfaces_test.go Fix race in object export. May 31, 2018
sig.go Add support for more of go's basic types Jan 26, 2017
sig_test.go Correctly decode struct values Jul 25, 2013
store_test.go Add support for mapping the empty interface to Variants where appropr… Nov 4, 2016
transport_darwin.go Run go fmt Nov 5, 2013
transport_generic.go Support passing a context to BusOject Call and Go May 1, 2018
transport_tcp.go tcp: Add support for Dial("tcp:host=..,port=.."). Nov 28, 2015
transport_tcp_test.go fix TestTcpConnection on OpenBSD May 6, 2016
transport_unix.go Handle array of Unix file descriptors Mar 28, 2018
transport_unix_test.go Reuse connections to well-known buses Mar 31, 2013
transport_unixcred_dragonfly.go Update explanatory link Sep 8, 2014
transport_unixcred_freebsd.go fix comments for FreeBSD May 19, 2016
transport_unixcred_linux.go Update explanatory link Sep 8, 2014
transport_unixcred_openbsd.go SendNullByte implementation for OpenBSD May 6, 2016
variant.go introduce MakeVariantWithSignature Aug 13, 2017
variant_lexer.go Fix bugs and add tests for variant parsing Aug 15, 2013
variant_parser.go Fix bugs and add tests for variant parsing Aug 15, 2013
variant_test.go Fix bugs and add tests for variant parsing Aug 15, 2013

README.markdown

Build Status

dbus

dbus is a simple library that implements native Go client bindings for the D-Bus message bus system.

Features

  • Complete native implementation of the D-Bus message protocol
  • Go-like API (channels for signals / asynchronous method calls, Goroutine-safe connections)
  • Subpackages that help with the introspection / property interfaces

Installation

This packages requires Go 1.7. If you installed it and set up your GOPATH, just run:

go get github.com/godbus/dbus

If you want to use the subpackages, you can install them the same way.

Usage

The complete package documentation and some simple examples are available at godoc.org. Also, the _examples directory gives a short overview over the basic usage.

Projects using godbus

  • notify provides desktop notifications over dbus into a library.
  • go-bluetooth provides a bluetooth client over bluez dbus API.

Please note that the API is considered unstable for now and may change without further notice.

License

go.dbus is available under the Simplified BSD License; see LICENSE for the full text.

Nearly all of the credit for this library goes to github.com/guelfey/go.dbus.