Documentation ¶
Index ¶
- type ModManager
- func (mm *ModManager) AddJMOD(jmodPath string, config []byte) error
- func (mm *ModManager) BuildJMOD(jmodPath string) error
- func (mm *ModManager) CleanProcesses()
- func (mm *ModManager) DeleteJMOD(jmodPath string) error
- func (mm *ModManager) GetJMODLog(jmodName string) ([]byte, error)
- func (mm *ModManager) IsJMODStopped(jmodName string) bool
- func (mm *ModManager) IsValidService(jmodKey string, portNumber int) (bool, string)
- func (mm *ModManager) JMODData() ([]byte, error)
- func (mm *ModManager) PassRequest(w http.ResponseWriter, r *http.Request)
- func (mm *ModManager) SaveConfigToFile() error
- func (mm *ModManager) ServiceHandler(w http.ResponseWriter, r *http.Request)
- func (mm *ModManager) SetJMODConfig(jmodName string, newConfig string) error
- func (mm *ModManager) StartJMOD(jmodName string) error
- func (mm *ModManager) StopJMOD(jmodName string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ModManager ¶
type ModManager struct { sync.RWMutex ProcMap map[string]*subprocess.Subprocess }
func NewModManager ¶
func NewModManager(conf []byte) (*ModManager, error)
func (*ModManager) BuildJMOD ¶
func (mm *ModManager) BuildJMOD(jmodPath string) error
func (*ModManager) CleanProcesses ¶
func (mm *ModManager) CleanProcesses()
func (*ModManager) DeleteJMOD ¶
func (mm *ModManager) DeleteJMOD(jmodPath string) error
func (*ModManager) GetJMODLog ¶
func (mm *ModManager) GetJMODLog(jmodName string) ([]byte, error)
func (*ModManager) IsJMODStopped ¶
func (mm *ModManager) IsJMODStopped(jmodName string) bool
func (*ModManager) IsValidService ¶
func (mm *ModManager) IsValidService(jmodKey string, portNumber int) (bool, string)
func (*ModManager) JMODData ¶
func (mm *ModManager) JMODData() ([]byte, error)
func (*ModManager) PassRequest ¶
func (mm *ModManager) PassRequest(w http.ResponseWriter, r *http.Request)
func (*ModManager) SaveConfigToFile ¶
func (mm *ModManager) SaveConfigToFile() error
func (*ModManager) ServiceHandler ¶
func (mm *ModManager) ServiceHandler(w http.ResponseWriter, r *http.Request)
Uses the JMOD-KEY and PORT-NUMBER assigned to each JMOD for authentication. JMODs can save their configs or retrieve information
func (*ModManager) SetJMODConfig ¶
func (mm *ModManager) SetJMODConfig(jmodName string, newConfig string) error
func (*ModManager) StartJMOD ¶
func (mm *ModManager) StartJMOD(jmodName string) error
func (*ModManager) StopJMOD ¶
func (mm *ModManager) StopJMOD(jmodName string) error
Click to show internal directories.
Click to hide internal directories.