Documentation ¶
Index ¶
- type Environment
- func (t *Environment) Create() error
- func (*Environment) CreateWrapper() io.Writer
- func (*Environment) DisplayToConsole(prefix bool, msg string, data ...interface{})
- func (t *Environment) ExecuteInMainProcess(cmd string) (err error)
- func (*Environment) GetRootDirectory() string
- func (t *Environment) GetStats() (*pufferpanel.ServerStats, error)
- func (t *Environment) IsRunning() (isRunning bool, err error)
- func (t *Environment) Kill() (err error)
- func (t *Environment) SendCode(code int) error
- func (t *Environment) WaitForMainProcess() error
- func (t *Environment) WaitForMainProcessFor(timeout time.Duration) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Environment ¶
type Environment struct { *pufferpanel.BaseEnvironment // contains filtered or unexported fields }
func CreateEnvironment ¶
func CreateEnvironment() *Environment
func (*Environment) Create ¶
func (t *Environment) Create() error
func (*Environment) CreateWrapper ¶
func (*Environment) CreateWrapper() io.Writer
func (*Environment) DisplayToConsole ¶
func (*Environment) DisplayToConsole(prefix bool, msg string, data ...interface{})
func (*Environment) ExecuteInMainProcess ¶
func (t *Environment) ExecuteInMainProcess(cmd string) (err error)
func (*Environment) GetRootDirectory ¶
func (*Environment) GetRootDirectory() string
func (*Environment) GetStats ¶
func (t *Environment) GetStats() (*pufferpanel.ServerStats, error)
func (*Environment) IsRunning ¶
func (t *Environment) IsRunning() (isRunning bool, err error)
func (*Environment) Kill ¶
func (t *Environment) Kill() (err error)
func (*Environment) SendCode ¶
func (t *Environment) SendCode(code int) error
func (*Environment) WaitForMainProcess ¶
func (t *Environment) WaitForMainProcess() error
func (*Environment) WaitForMainProcessFor ¶
func (t *Environment) WaitForMainProcessFor(timeout time.Duration) (err error)
Click to show internal directories.
Click to hide internal directories.