Documentation ¶
Index ¶
- Constants
- Variables
- func Parse(buff []byte, sig string, index int) (slice []interface{}, bufIdx int, err error)
- type AuthExternal
- type Authenticator
- type Connection
- func (p *Connection) AddSignalHandler(mr *MatchRule, proc func(*Message))
- func (p *Connection) CallMethod(iface *Interface, name string, args ...interface{}) ([]interface{}, error)
- func (p *Connection) EmitSignal(iface *Interface, name string, args ...interface{}) error
- func (p *Connection) GetObject(dest string, path string) *Object
- func (p *Connection) Initialize() error
- func (p *Connection) Interface(obj *Object, name string) *Interface
- type Interface
- type InterfaceData
- type Introspect
- type MatchRule
- type Message
- type MessageFlag
- type MessageType
- type MethodData
- type Object
- type SignalData
- type StandardBus
Constants ¶
View Source
const ( STARTING = iota WAITING_FOR_DATA WAITING_FOR_OK WAITING_FOR_REJECT AUTH_CONTINUE AUTH_OK AUTH_ERROR AUTHENTICATED AUTH_NEXT )
View Source
const ( INVALID = 0 METHOD_CALL = 1 METHOD_RETURN = 2 ERROR = 3 SIGNAL = 4 )
View Source
const ( NO_REPLY_EXPECTED = 0x1 NO_AUTO_START = 0x2 )
Variables ¶
View Source
var ( ErrAuthUnknownCommand = errors.New("UnknowAuthCommand") ErrAuthFailed = errors.New("AuthenticationFailed") )
Functions ¶
Types ¶
type AuthExternal ¶
type AuthExternal struct { }
func (*AuthExternal) Authenticate ¶
func (p *AuthExternal) Authenticate() string
func (*AuthExternal) Mechanism ¶
func (p *AuthExternal) Mechanism() string
type Authenticator ¶
type Connection ¶
type Connection struct {
// contains filtered or unexported fields
}
func Connect ¶
func Connect(busType StandardBus) (*Connection, error)
func (*Connection) AddSignalHandler ¶
func (p *Connection) AddSignalHandler(mr *MatchRule, proc func(*Message))
func (*Connection) CallMethod ¶
func (p *Connection) CallMethod(iface *Interface, name string, args ...interface{}) ([]interface{}, error)
func (*Connection) EmitSignal ¶
func (p *Connection) EmitSignal(iface *Interface, name string, args ...interface{}) error
func (*Connection) Initialize ¶
func (p *Connection) Initialize() error
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 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
type MessageFlag ¶
type MessageFlag int
type MessageType ¶
type MessageType int
type MethodData ¶
type SignalData ¶
type SignalData interface {
GetSignature() string
}
Click to show internal directories.
Click to hide internal directories.