go-systemd
go-systemd copied to clipboard
login1: Add NewWithConnection method
This method allows passing existing D-Bus connection, which allows to re-use connection between clients and to mock D-Bus connection for testing purposes.
Extracted from #390 Includes commits from #395
Signed-off-by: Mateusz Gozdek [email protected]