session

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2020 License: MIT Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAuthSession

func NewAuthSession(addr, user, token string) (bus.Session, error)

NewAuthSession connects an address and return a new session.

func NewSession

func NewSession(addr string) (bus.Session, error)

NewSession connects an address and return a new session.

Types

type Session

type Session struct {
	Directory services.ServiceDirectoryProxy
	// contains filtered or unexported fields
}

Session implements the Session interface. It is an implementation of Session. It does not update the list of services and returns clients.

func (*Session) Object

func (s *Session) Object(ref object.ObjectReference) (o bus.Proxy, err error)

Object returns a reference to ref. TODO: cache the returned objects in order to benefit from the signal registration caching.

func (*Session) Proxy

func (s *Session) Proxy(name string, objectID uint32) (p bus.Proxy, err error)

Proxy resolve the service name and returns a proxy to it.

func (*Session) Terminate

func (s *Session) Terminate() error

Terminate close the session.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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