busagent

package
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 21, 2024 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BusAgent

type BusAgent interface {
	Call(string, dbus.ObjectPath, string, string, ...string) error
	Listen([]string) error
	PropGet(string, dbus.ObjectPath, string, string) error
}

BusAgent is an interface generated for "github.com/black-desk/busagent/internal/busagent.impl".

func New

func New(opts ...Opt) (ret BusAgent, err error)

type Opt

type Opt = (func(*impl) (*impl, error))

func WithDBusConn

func WithDBusConn(conn *dbus.Conn) Opt

func WithLogger

func WithLogger(logger *zap.SugaredLogger) Opt

func WithPrinter

func WithPrinter(p printer.Printer) Opt

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL