server

package
v0.0.0-...-a426fde Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2017 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExportToDBus

func ExportToDBus(proc *Process, bus string) error

Types

type DBusServer

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

func (*DBusServer) Close

func (s *DBusServer) Close() error

func (*DBusServer) RequestCommand

func (s *DBusServer) RequestCommand(sender dbus.Sender, otype byte, buffered bool) (input, output dbus.UnixFD, derr *dbus.Error)

func (*DBusServer) RequestOutput

func (s *DBusServer) RequestOutput(sender dbus.Sender, otype byte) (output dbus.UnixFD, derr *dbus.Error)

func (*DBusServer) SendCommand

func (s *DBusServer) SendCommand(sender dbus.Sender, otype byte, command string) (output dbus.UnixFD, derr *dbus.Error)

type Process

type Process struct {
	OnCleanup map[interface{}]func() error

	Description string
	// contains filtered or unexported fields
}

func StartProcess

func StartProcess(name string, desc string, arg ...string) (p *Process, err error)

func (*Process) Cleanup

func (p *Process) Cleanup() error

func (*Process) ConnectError

func (p *Process) ConnectError(sink *os.File)

func (*Process) ConnectInput

func (p *Process) ConnectInput(source *os.File, buffered bool) error

func (*Process) ConnectOutput

func (p *Process) ConnectOutput(sink *os.File)

func (*Process) RequestCommand

func (p *Process) RequestCommand(otype common.OutputType, buffered bool) (*os.File, *os.File, error)

func (*Process) RequestOutput

func (p *Process) RequestOutput(otype common.OutputType) (*os.File, error)

func (*Process) SendCommand

func (p *Process) SendCommand(otype common.OutputType, command string) (*os.File, error)

func (*Process) Start

func (p *Process) Start() (err error)

func (*Process) Wait

func (p *Process) Wait() error

Jump to

Keyboard shortcuts

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