Documentation
¶
Index ¶
- func CloseProcess(proc *os.Process, exitStrat string) error
- func ReplaceArgVars(args []string, vars map[string]string) []string
- type CommandRunner
- type GMCConfig
- type GMCConfigCommand
- type GMCConfigDirectoryGenerator
- type GMCConfigGenerators
- type GMCConfigMameGenerator
- type GMCConfigRetroarchGenerator
- type GroovyMiSTerCommand
- type ProcessStateError
- type RunResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CommandRunner ¶
func (*CommandRunner) Cancel ¶
func (cmdr *CommandRunner) Cancel() error
func (*CommandRunner) IsRunning ¶
func (cmdr *CommandRunner) IsRunning() bool
func (*CommandRunner) ReplaceArgVars ¶
func (cmdr *CommandRunner) ReplaceArgVars(args []string, vars map[string]string) []string
func (*CommandRunner) Run ¶
func (cmdr *CommandRunner) Run(gmc GroovyMiSTerCommand) RunResult
type GMCConfig ¶
type GMCConfig struct {
MisterHost string `json:"mister_host"`
ExitStrategy string `json:"exit_strategy"`
ExitPauseMs int `json:"exit_pause_ms"`
DisplayMessages bool `json:"display_messages"`
Commands []GMCConfigCommand `json:"commands"`
Generators GMCConfigGenerators `json:"generators"`
CmdMap map[string]GMCConfigCommand
}
func LoadConfigFromPath ¶
type GMCConfigCommand ¶
type GMCConfigDirectoryGenerator ¶
type GMCConfigDirectoryGenerator struct {
Name string `json:"name"`
Dir string `json:"dir"`
Extensions []string `json:"extensions"`
Template GroovyMiSTerCommand `json:"template"`
}
type GMCConfigGenerators ¶
type GMCConfigGenerators struct {
Mame GMCConfigMameGenerator `json:"mame"`
Retroarch GMCConfigRetroarchGenerator `json:"retroarch"`
Directories []GMCConfigDirectoryGenerator `json:"directories"`
}
type GMCConfigMameGenerator ¶
type GMCConfigRetroarchGenerator ¶
type GMCConfigRetroarchGenerator struct {
PlaylistsDir string `json:"playlists_dir"`
}
type GroovyMiSTerCommand ¶
type GroovyMiSTerCommand struct {
Cmd string `json:"cmd"`
Vars map[string]string `json:"vars"`
Raw []byte
}
func ParseGMC ¶
func ParseGMC(cmdBytes []byte) (GroovyMiSTerCommand, error)
type ProcessStateError ¶
type ProcessStateError struct {
// contains filtered or unexported fields
}
func (*ProcessStateError) Error ¶
func (err *ProcessStateError) Error() string
Click to show internal directories.
Click to hide internal directories.