Documentation ¶
Index ¶
- func Parse(buff []byte, sig string, index int) (slice []interface{}, bufIdx int, err error)
- type AuthDbusCookieSha1
- type AuthExternal
- type Authenticator
- type Connection
- func (p *Connection) Authenticate() error
- func (p *Connection) Call(method *Method, args ...interface{}) ([]interface{}, error)
- func (p *Connection) Emit(signal *Signal, args ...interface{}) error
- func (p *Connection) Handle(rule *MatchRule, handler func(*Message))
- func (p *Connection) Object(dest string, path string) *Object
- type Interface
- type InterfaceData
- type Introspect
- type MatchRule
- type Message
- type MessageFlag
- type MessageType
- type Method
- type MethodData
- type Object
- type Signal
- type SignalData
- type StandardBus
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AuthDbusCookieSha1 ¶
type AuthDbusCookieSha1 struct { }
func (*AuthDbusCookieSha1) InitialResponse ¶
func (p *AuthDbusCookieSha1) InitialResponse() []byte
func (*AuthDbusCookieSha1) Mechanism ¶
func (p *AuthDbusCookieSha1) Mechanism() []byte
func (*AuthDbusCookieSha1) ProcessData ¶
func (p *AuthDbusCookieSha1) ProcessData(mesg []byte) ([]byte, error)
type AuthExternal ¶
type AuthExternal struct { }
func (*AuthExternal) InitialResponse ¶
func (p *AuthExternal) InitialResponse() []byte
func (*AuthExternal) Mechanism ¶
func (p *AuthExternal) Mechanism() []byte
func (*AuthExternal) ProcessData ¶
func (p *AuthExternal) ProcessData([]byte) ([]byte, error)
type Authenticator ¶
type Connection ¶
type Connection struct {
// contains filtered or unexported fields
}
func Connect ¶
func Connect(busType StandardBus) (*Connection, error)
func (*Connection) Authenticate ¶
func (p *Connection) Authenticate() error
func (*Connection) Call ¶
func (p *Connection) Call(method *Method, args ...interface{}) ([]interface{}, error)
Call a method with the given arguments.
func (*Connection) Emit ¶
func (p *Connection) Emit(signal *Signal, args ...interface{}) error
Emit a signal with the given arguments.
func (*Connection) Handle ¶
func (p *Connection) Handle(rule *MatchRule, handler func(*Message))
Handle received signals.
type Interface ¶
type Interface struct {
// contains filtered or unexported fields
}
type InterfaceData ¶
type InterfaceData interface { GetMethodData(name string) MethodData GetSignalData(name string) SignalData GetName() string }
type Introspect ¶
type Introspect interface {
GetInterfaceData(name string) InterfaceData
}
func NewIntrospect ¶
func NewIntrospect(xmlIntro string) (Introspect, error)
type MatchRule ¶
type MatchRule struct { Type MessageType Interface string Member string Path string }
Matches all messages with equal type, interface, member, or path. Any missing/invalid fields are not matched against.
type Message ¶
type Message struct { Type MessageType Flags MessageFlag Protocol int Path string Dest string Iface string Member string Sig string Params []interface{} ErrorName string // contains filtered or unexported fields }
func NewMessage ¶
func NewMessage() *Message
Create a new message with Flags == 0 and Protocol == 1.
type MessageFlag ¶
type MessageFlag uint8
const ( FlagNoReplyExpected MessageFlag = 1 << iota FlagNoAutoStart )
type MessageType ¶
type MessageType uint8
See the D-Bus tutorial for information about message types.
http://dbus.freedesktop.org/doc/dbus-tutorial.html#messages
const ( TypeInvalid MessageType = iota TypeMethodCall TypeMethodReturn TypeError TypeSignal )
func (MessageType) String ¶
func (t MessageType) String() string
type MethodData ¶
type SignalData ¶
Click to show internal directories.
Click to hide internal directories.