Versions in this module Expand all Collapse all v0 v0.1.1 Aug 9, 2026 v0.1.0 Aug 7, 2026 Changes in this version + const NameFlagAllowReplacement + const NameFlagDoNotQueue + const NameFlagReplaceExisting + const NameReplyAlreadyOwner + const NameReplyExists + const NameReplyInQueue + const NameReplyPrimaryOwner + var DefaultCallTimeout = 30 * time.Second + var ErrClosed = errors.New("dbus: connection closed") + func Marshal(order ByteOrder, vs ...interface{}) ([]byte, error) + func Store(src []interface{}, dsts ...interface{}) error + func Unmarshal(data []byte, order ByteOrder, sig Signature) ([]interface{}, int, error) + func WriteMessage(w io.Writer, m *Message, order ByteOrder) error + type BusObject interface + Call func(method string, flags Flags, args ...interface{}) *Call + CallWithContext func(ctx context.Context, method string, flags Flags, args ...interface{}) *Call + Destination func() string + GetProperty func(name string) (Variant, error) + Path func() ObjectPath + SetProperty func(name string, value interface{}) error + type ByteOrder = binary.ByteOrder + type Call struct + Args []interface{} + Body []interface{} + Destination string + Err error + Method string + Path ObjectPath + func (c *Call) Store(dsts ...interface{}) error + type Conn struct + func ConnectSessionBus() (*Conn, error) + func ConnectSystemBus() (*Conn, error) + func Dial(address string) (*Conn, error) + func NewConn(transport net.Conn) *Conn + func (c *Conn) AddMatch(rule string) error + func (c *Conn) Close() error + func (c *Conn) Emit(path ObjectPath, name string, args ...interface{}) error + func (c *Conn) EmitPropertiesChanged(path ObjectPath, iface string, changed map[string]interface{}) error + func (c *Conn) Export(v interface{}, path ObjectPath, iface string) error + func (c *Conn) ExportProperties(path ObjectPath, iface string, props map[string]*Prop) error + func (c *Conn) Hello() (string, error) + func (c *Conn) Names() []string + func (c *Conn) Object(dest string, path ObjectPath) BusObject + func (c *Conn) ReleaseName(name string) (uint32, error) + func (c *Conn) RemoveMatch(rule string) error + func (c *Conn) RemoveSignal(ch chan<- *Signal) + func (c *Conn) RequestName(name string, flags uint32) (uint32, error) + func (c *Conn) Signal(ch chan<- *Signal) + type Error struct + Body []interface{} + Name string + func MakeFailedError(err error) *Error + func NewError(name string, body []interface{}) *Error + func (e Error) Error() string + type Flags byte + const FlagAllowInteractiveAuthorization + const FlagNoAutoStart + const FlagNoReplyExpected + type HeaderField byte + const FieldDestination + const FieldErrorName + const FieldInterface + const FieldMember + const FieldPath + const FieldReplySerial + const FieldSender + const FieldSignature + const FieldUnixFDs + type Marshaler interface + MarshalDBus func(dst []byte, order ByteOrder, pos int) ([]byte, Signature, error) + type Message struct + Body []interface{} + Flags Flags + Headers map[HeaderField]Variant + Type MessageType + func DecodeMessage(data []byte) (*Message, int, error) + func ReadMessage(r io.Reader) (*Message, error) + func (m *Message) Marshal(order ByteOrder) ([]byte, error) + func (m *Message) Serial() uint32 + func (m *Message) SetSerial(s uint32) + type MessageType byte + const TypeError + const TypeInvalid + const TypeMethodCall + const TypeMethodReturn + const TypeSignal + type ObjectPath string + func (p ObjectPath) IsValid() bool + type Prop struct + Value interface{} + Writable bool + type Signal struct + Body []interface{} + Name string + Path ObjectPath + Sender string + type Signature struct + func ParseSignature(s string) (Signature, error) + func ParseSignatureMust(s string) Signature + func SignatureOf(vs ...interface{}) Signature + func SignatureOfType(t reflect.Type) (Signature, error) + func (s Signature) Empty() bool + func (s Signature) String() string + type UnixFD int32 + type UnixFDIndex uint32 + type Unmarshaler interface + UnmarshalDBus func(src []byte, order ByteOrder, pos int) (int, error) + type Variant struct + func MakeVariant(value interface{}) Variant + func MakeVariantWithSignature(value interface{}, sig Signature) Variant + func (v Variant) Signature() Signature + func (v Variant) String() string + func (v Variant) Value() interface{}