Documentation
¶
Index ¶
Constants ¶
View Source
const ( EmptyEvent Event = "empty" StartedEvent = "started" StoppedEvent = "stopped" StartEvent = "start" StopEvent = "stop" )
View Source
const ( ServerOffline = "offline" ServerOnline = "online" ServerStarting = "starting" ServerStopping = "stopping" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConsoleImpl ¶
type ConsoleImpl struct {
// contains filtered or unexported fields
}
func NewConsole ¶
func NewConsole(cmd JavaExec) *ConsoleImpl
func (*ConsoleImpl) Kill ¶
func (c *ConsoleImpl) Kill() error
func (*ConsoleImpl) ReadLine ¶
func (c *ConsoleImpl) ReadLine() (string, error)
func (*ConsoleImpl) Start ¶
func (c *ConsoleImpl) Start() error
func (*ConsoleImpl) WriteCmd ¶
func (c *ConsoleImpl) WriteCmd(cmd string) error
type JavaExec ¶
type JavaExec interface {
Stdout() io.ReadCloser
Stdin() io.WriteCloser
Start() error
Kill() error
}
type JavaExecImpl ¶
type JavaExecImpl struct {
// contains filtered or unexported fields
}
func JavaExecCmd ¶
func JavaExecCmd(serverPath string, initialHeapSize, maxHeapSize int) *JavaExecImpl
func (*JavaExecImpl) Kill ¶
func (j *JavaExecImpl) Kill() error
func (*JavaExecImpl) Start ¶
func (j *JavaExecImpl) Start() error
func (*JavaExecImpl) Stdin ¶
func (j *JavaExecImpl) Stdin() io.WriteCloser
func (*JavaExecImpl) Stdout ¶
func (j *JavaExecImpl) Stdout() io.ReadCloser
type LogLine ¶
type LogLine struct {
// contains filtered or unexported fields
}
func ParseToLogLine ¶
type StateChangeFunc ¶
type Wrapper ¶
type Wrapper struct {
// contains filtered or unexported fields
}
func NewDefaultWrapper ¶
func NewWrapper ¶
func (*Wrapper) RegisterStateChangeCBS ¶
func (w *Wrapper) RegisterStateChangeCBS(cbs ...StateChangeFunc)
Click to show internal directories.
Click to hide internal directories.