Documentation ¶
Index ¶
- func StartRpcServer(debugPort, serverPort, steamPath, dataDir, pluginsDir, authToken string, ...)
- type AutostartService
- func (service *AutostartService) DisableService(r *http.Request, req *DisableServiceArgs, res *DisableServiceReply) error
- func (service *AutostartService) HostHasSystemd(r *http.Request, req *HostHasSystemdArgs, res *HostHasSystemdReply) error
- func (service *AutostartService) InstallService(r *http.Request, req *InstallServiceArgs, res *InstallServiceReply) error
- func (service *AutostartService) ServiceInstalled(r *http.Request, req *ServiceInstalledArgs, res *ServiceInstalledReply) error
- type CmdInfo
- type Content
- type DisableServiceArgs
- type DisableServiceReply
- type ExecService
- type FSService
- func (service *FSService) GetPluginsPath(r *http.Request, req *GetPluginsPathArgs, res *GetPluginsPathReply) error
- func (service *FSService) ListDir(r *http.Request, req *ListDirArgs, res *ListDirReply) error
- func (service *FSService) MkDir(r *http.Request, req *MakeDirArgs, res *MakeDirReply) error
- func (service *FSService) ReadFile(r *http.Request, req *ReadFileArgs, res *ReadFileReply) error
- func (service *FSService) RemoveFile(r *http.Request, req *RemoveFileArgs, res *RemoveFileReply) error
- func (service *FSService) Untar(r *http.Request, req *UntarArgs, res *UntarReply) error
- type GetArgs
- type GetPluginsPathArgs
- type GetPluginsPathReply
- type GetReply
- type HostHasSystemdArgs
- type HostHasSystemdReply
- type IPCService
- type InstallServiceArgs
- type InstallServiceReply
- type ListArgs
- type ListDirArgs
- type ListDirReply
- type ListReply
- type MakeDirArgs
- type MakeDirReply
- type PluginsService
- func (service *PluginsService) List(r *http.Request, req *ListArgs, res *ListReply) error
- func (service *PluginsService) Rebuild(r *http.Request, req *RebuildArgs, res *RebuildReply) error
- func (service *PluginsService) Reload(r *http.Request, req *ReloadArgs, res *ReloadReply) error
- func (service *PluginsService) Remove(r *http.Request, req *RemoveArgs, res *RemoveReply) error
- func (service *PluginsService) SetEnabled(r *http.Request, req *SetEnabledArgs, res *SetEnabledReply) error
- type ReadFileArgs
- type ReadFileReply
- type RebuildArgs
- type RebuildReply
- type ReloadArgs
- type ReloadReply
- type RemoveArgs
- type RemoveFileArgs
- type RemoveFileReply
- type RemoveReply
- type RunArgs
- type RunReply
- type SendArgs
- type SendReply
- type ServiceInstalledArgs
- type ServiceInstalledReply
- type SetArgs
- type SetEnabledArgs
- type SetEnabledReply
- type SetReply
- type StartArgs
- type StartReply
- type StopArgs
- type StopReply
- type StoreService
- type UntarArgs
- type UntarReply
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func StartRpcServer ¶
func StartRpcServer(debugPort, serverPort, steamPath, dataDir, pluginsDir, authToken string, plugins *plugins.Plugins)
StartRpcServer starts the HTTP server that serves the RPC plugin API.
Types ¶
type AutostartService ¶
type AutostartService struct {
// contains filtered or unexported fields
}
func NewAutostartService ¶
func NewAutostartService(dataDir string) *AutostartService
func (*AutostartService) DisableService ¶
func (service *AutostartService) DisableService(r *http.Request, req *DisableServiceArgs, res *DisableServiceReply) error
func (*AutostartService) HostHasSystemd ¶
func (service *AutostartService) HostHasSystemd(r *http.Request, req *HostHasSystemdArgs, res *HostHasSystemdReply) error
func (*AutostartService) InstallService ¶
func (service *AutostartService) InstallService(r *http.Request, req *InstallServiceArgs, res *InstallServiceReply) error
func (*AutostartService) ServiceInstalled ¶
func (service *AutostartService) ServiceInstalled(r *http.Request, req *ServiceInstalledArgs, res *ServiceInstalledReply) error
type DisableServiceArgs ¶
type DisableServiceArgs struct{}
type DisableServiceReply ¶
type DisableServiceReply struct{}
type ExecService ¶
type ExecService struct {
Commands map[pid]*CmdInfo
}
func NewExecService ¶
func NewExecService() *ExecService
func (*ExecService) Start ¶
func (service *ExecService) Start(r *http.Request, req *StartArgs, res *StartReply) error
type FSService ¶
type FSService struct {
// contains filtered or unexported fields
}
func NewFSService ¶
func (*FSService) GetPluginsPath ¶
func (service *FSService) GetPluginsPath(r *http.Request, req *GetPluginsPathArgs, res *GetPluginsPathReply) error
func (*FSService) ListDir ¶
func (service *FSService) ListDir(r *http.Request, req *ListDirArgs, res *ListDirReply) error
func (*FSService) MkDir ¶
func (service *FSService) MkDir(r *http.Request, req *MakeDirArgs, res *MakeDirReply) error
func (*FSService) ReadFile ¶
func (service *FSService) ReadFile(r *http.Request, req *ReadFileArgs, res *ReadFileReply) error
func (*FSService) RemoveFile ¶
func (service *FSService) RemoveFile(r *http.Request, req *RemoveFileArgs, res *RemoveFileReply) error
type GetPluginsPathArgs ¶
type GetPluginsPathArgs struct{}
type GetPluginsPathReply ¶
type GetPluginsPathReply struct {
Path string `json:"path"`
}
type HostHasSystemdArgs ¶
type HostHasSystemdArgs struct{}
type HostHasSystemdReply ¶
type HostHasSystemdReply struct {
HasSystemd bool `json:"hasSystemd"`
}
type IPCService ¶
type IPCService struct {
// contains filtered or unexported fields
}
func NewIPCService ¶
func NewIPCService(hub *ws.Hub) *IPCService
type InstallServiceArgs ¶
type InstallServiceArgs struct{}
type InstallServiceReply ¶
type InstallServiceReply struct{}
type ListDirArgs ¶
type ListDirArgs struct {
Path string `json:"path"`
}
type ListDirReply ¶
type ListDirReply struct {
Contents []Content `json:"contents"`
}
type MakeDirArgs ¶
type MakeDirReply ¶
type MakeDirReply struct{}
type PluginsService ¶
type PluginsService struct {
// contains filtered or unexported fields
}
func NewPluginsService ¶
func NewPluginsService(plugins *plugins.Plugins) *PluginsService
func (*PluginsService) Rebuild ¶
func (service *PluginsService) Rebuild(r *http.Request, req *RebuildArgs, res *RebuildReply) error
func (*PluginsService) Reload ¶
func (service *PluginsService) Reload(r *http.Request, req *ReloadArgs, res *ReloadReply) error
func (*PluginsService) Remove ¶
func (service *PluginsService) Remove(r *http.Request, req *RemoveArgs, res *RemoveReply) error
func (*PluginsService) SetEnabled ¶
func (service *PluginsService) SetEnabled(r *http.Request, req *SetEnabledArgs, res *SetEnabledReply) error
type ReadFileArgs ¶
type ReadFileArgs struct {
Path string `json:"path"`
}
type ReadFileReply ¶
type ReadFileReply struct {
Data string `json:"data"`
}
type RebuildArgs ¶
type RebuildArgs struct {
Id string `json:"id"`
}
type RebuildReply ¶
type RebuildReply struct{}
type ReloadArgs ¶
type ReloadArgs struct{}
type ReloadReply ¶
type ReloadReply struct{}
type RemoveArgs ¶
type RemoveArgs struct {
Id string `json:"id"`
}
type RemoveFileArgs ¶
type RemoveFileArgs struct {
Path string `json:"path"`
}
type RemoveFileReply ¶
type RemoveFileReply struct { }
type RemoveReply ¶
type RemoveReply struct{}
type ServiceInstalledArgs ¶
type ServiceInstalledArgs struct{}
type ServiceInstalledReply ¶
type ServiceInstalledReply struct {
ServiceInstalled bool `json:"serviceInstalled"`
}
type SetEnabledArgs ¶
type SetEnabledReply ¶
type SetEnabledReply struct{}
type StartReply ¶
type StartReply struct {
Pid int `json:"pid"`
}
type StoreService ¶
type StoreService struct {
// contains filtered or unexported fields
}
func NewStoreService ¶
func NewStoreService(dataDir string) *StoreService
type UntarReply ¶
type UntarReply struct{}
Click to show internal directories.
Click to hide internal directories.