service

package
v0.0.0-...-602244f Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2016 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

type Manager struct {
	// contains filtered or unexported fields
}

Manager handles Service instances

func GetManager

func GetManager() *Manager

GetManager return the singleton Manager instance

func NewManager

func NewManager() *Manager

NewManager creates a new Manager instance

func (*Manager) GetService

func (s *Manager) GetService(path string) api.Service

GetService return an instance of a service

func (*Manager) Start

func (s *Manager) Start(p api.Proxy) (*Service, error)

Start create a service from a proxy and start it

func (*Manager) StartService

func (s *Manager) StartService(service api.Service) error

StartService start a service and add it to the managed list

func (*Manager) Stop

func (s *Manager) Stop(p api.Proxy) error

Stop a running service

type Service

type Service struct {
	api.Service
	// contains filtered or unexported fields
}

Service provide deamon instance informations

func NewService

func NewService(p api.Proxy) *Service

NewService instantiate a new service

func (*Service) Connect

func (d *Service) Connect() error

Connect connect to a bus

func (*Service) Export

func (d *Service) Export() error

Export the daemon node & intefaces

func (*Service) GetInterface

func (d *Service) GetInterface() string

GetInterface return the service interface

func (*Service) GetObject

func (d *Service) GetObject() *api.Proxy

GetObject get the object proxy

func (*Service) GetPath

func (d *Service) GetPath() string

GetPath return the service path

func (*Service) New

func (d *Service) New() error

New configure a daemon instance

func (*Service) SetInterface

func (d *Service) SetInterface(iface string)

SetInterface set the service interface

func (*Service) SetObject

func (d *Service) SetObject(p *api.Proxy)

SetObject set the object proxy

func (*Service) SetPath

func (d *Service) SetPath(path string)

SetPath set the service path

func (*Service) Start

func (d *Service) Start() error

Start start a new daemon

func (*Service) Stop

func (d *Service) Stop() error

Stop stops the daemon and unexport the proxied object

Jump to

Keyboard shortcuts

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