Documentation
¶
Overview ¶
Package srvdbus provides a Dbus service (and client) with dock applets management.
Index ¶
- Constants
- func AppletDebug(applet string, state bool) error
- func SourceCodeBuildTarget() error
- func SourceCodeGrepTarget(data string) error
- func SourceCodeOpenFile(data string) error
- func SourceCodeVersions() (list []*versions.Repo, e error)
- func UpToShareLastLink() (string, error)
- func UpToShareLinks() (string, error)
- func UploadFiles(filePath ...string) error
- func UploadString(data string) error
- type AppService
- type Loader
- func (load *Loader) AppletDebug(applet string, state bool) *dbus.Error
- func (load *Loader) Connect() (bool, error)
- func (load *Loader) SetManager(mgr AppService)
- func (load *Loader) SourceCodeBuildTarget() *dbus.Error
- func (load *Loader) SourceCodeGrepTarget(data string) *dbus.Error
- func (load *Loader) SourceCodeOpenFile(data string) *dbus.Error
- func (load *Loader) SourceCodeVersions() (out []byte, err *dbus.Error)
- func (load *Loader) StartLoop()
- func (load *Loader) UpToShareLastLink() (string, *dbus.Error)
- func (load *Loader) UpToShareLinks() (out []map[string]string, e *dbus.Error)
- func (load *Loader) UploadFiles(data []string) *dbus.Error
- func (load *Loader) UploadString(data string) *dbus.Error
- type MgrDbus
Constants ¶
const SrvObj = "org.cairodock.GoDock"
SrvObj is the Dbus object name for the service.
const SrvPath = "/org/cairodock/GoDock"
SrvPath is the Dbus path name for the service.
Variables ¶
This section is empty.
Functions ¶
func AppletDebug ¶
AppletDebug forwards action set debug to a remote applet.
func SourceCodeBuildTarget ¶
func SourceCodeBuildTarget() error
SourceCodeBuildTarget forwards action build source target to the dock.
func SourceCodeGrepTarget ¶
SourceCodeGrepTarget forwards action grep text in source code to the dock.
func SourceCodeOpenFile ¶
SourceCodeOpenFile forwards action open source code file to the dock.
func SourceCodeVersions ¶
SourceCodeVersions get source versions data.
func UpToShareLastLink ¶
UpToShareLastLink get the last uploaded link from the dock.
func UpToShareLinks ¶
UpToShareLinks get all uploaded links from the dock.
func UploadFiles ¶
UploadFiles forwards action upload files (location) to the dock.
func UploadString ¶
UploadString forwards action upload string content to the dock.
Types ¶
type AppService ¶
type AppService interface { CountActive() int GetApplets(name string) (list []cdtype.AppInstance) Tick() }
AppService defines common applets service actions to remotely interact with applets.
type Loader ¶
type Loader struct { *dbuscommon.Server // Dbus connection. // contains filtered or unexported fields }
Loader is a multi applet manager.
func (*Loader) AppletDebug ¶
AppletDebug change the debug state of an active applet.
func (*Loader) SetManager ¶
func (load *Loader) SetManager(mgr AppService)
SetManager sets the applet manager service.
func (*Loader) SourceCodeBuildTarget ¶
SourceCodeBuildTarget send data (raw text or file) to a one-click hosting service.
func (*Loader) SourceCodeGrepTarget ¶
SourceCodeGrepTarget send data (raw text or file) to a one-click hosting service.
func (*Loader) SourceCodeOpenFile ¶
SourceCodeOpenFile send data (raw text or file) to a one-click hosting service.
func (*Loader) SourceCodeVersions ¶
SourceCodeVersions gets versions data. returned json: []*versions.Repo
func (*Loader) StartLoop ¶
func (load *Loader) StartLoop()
StartLoop handle applets until there's none of them alive.
func (*Loader) UpToShareLastLink ¶
UpToShareLastLink gets the link of the last item sent to a one-click hosting service.
func (*Loader) UpToShareLinks ¶
UpToShareLinks gets all links of items sent to one-click hosting services.
func (*Loader) UploadFiles ¶
UploadFiles send files to a one-click hosting service.
Directories
¶
Path | Synopsis |
---|---|
Package dbuscommon provides a common dbus server and client base to extend.
|
Package dbuscommon provides a common dbus server and client base to extend. |
Package dlogbus provides a Dbus service (and client) for a dock external launcher.
|
Package dlogbus provides a Dbus service (and client) for a dock external launcher. |
Package dockbus provides a Dbus client for the main dock Dbus service.
|
Package dockbus provides a Dbus client for the main dock Dbus service. |
Package dockpath defines paths used by the main dock dbus service.
|
Package dockpath defines paths used by the main dock dbus service. |
Package mgrdbus provides a Dbus service (and client) for external applets management.
|
Package mgrdbus provides a Dbus service (and client) for external applets management. |