Documentation ¶
Index ¶
- func ExecuteInitHookForRunner(language string) error
- type GrpcRunner
- func (r *GrpcRunner) Alive() bool
- func (r *GrpcRunner) Connection() net.Conn
- func (r *GrpcRunner) ExecuteAndGetStatus(m *gm.Message) *gm.ProtoExecutionResult
- func (r *GrpcRunner) ExecuteMessageWithTimeout(message *gm.Message) (*gm.Message, error)
- func (r *GrpcRunner) IsMultithreaded() bool
- func (r *GrpcRunner) Kill() error
- func (r *GrpcRunner) Pid() int
- type LanguageRunner
- func (r *LanguageRunner) Alive() bool
- func (r *LanguageRunner) Connection() net.Conn
- func (r *LanguageRunner) EnsureConnected() bool
- func (r *LanguageRunner) ExecuteAndGetStatus(message *gauge_messages.Message) *gauge_messages.ProtoExecutionResult
- func (r *LanguageRunner) ExecuteMessageWithTimeout(message *gauge_messages.Message) (*gauge_messages.Message, error)
- func (r *LanguageRunner) IsMultithreaded() bool
- func (r *LanguageRunner) Kill() error
- func (r *LanguageRunner) Pid() int
- type MultithreadedRunner
- func (r *MultithreadedRunner) Alive() bool
- func (r *MultithreadedRunner) Connection() net.Conn
- func (r *MultithreadedRunner) ExecuteAndGetStatus(message *gauge_messages.Message) *gauge_messages.ProtoExecutionResult
- func (r *MultithreadedRunner) ExecuteMessageWithTimeout(message *gauge_messages.Message) (*gauge_messages.Message, error)
- func (r *MultithreadedRunner) IsMultithreaded() bool
- func (r *MultithreadedRunner) Kill() error
- func (r *MultithreadedRunner) Pid() int
- func (r *MultithreadedRunner) SetConnection(c net.Conn)
- type Runner
- type RunnerInfo
- type StartChannels
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type GrpcRunner ¶ added in v0.9.8
type GrpcRunner struct { Client gm.LspServiceClient Timeout time.Duration // contains filtered or unexported fields }
GrpcRunner handles grpc messages.
func ConnectToGrpcRunner ¶ added in v0.9.8
func ConnectToGrpcRunner(manifest *manifest.Manifest, outFile io.Writer, timeout time.Duration) (*GrpcRunner, error)
ConnectToGrpcRunner makes a connection with grpc server
func (*GrpcRunner) Alive ¶ added in v1.0.4
func (r *GrpcRunner) Alive() bool
func (*GrpcRunner) Connection ¶ added in v0.9.8
func (r *GrpcRunner) Connection() net.Conn
func (*GrpcRunner) ExecuteAndGetStatus ¶ added in v0.9.8
func (r *GrpcRunner) ExecuteAndGetStatus(m *gm.Message) *gm.ProtoExecutionResult
func (*GrpcRunner) ExecuteMessageWithTimeout ¶ added in v0.9.8
ExecuteMessageWithTimeout process reuqest and give back the response
func (*GrpcRunner) IsMultithreaded ¶ added in v0.9.8
func (r *GrpcRunner) IsMultithreaded() bool
func (*GrpcRunner) Kill ¶ added in v0.9.8
func (r *GrpcRunner) Kill() error
Kill closes the grpc connection and kills the process
func (*GrpcRunner) Pid ¶ added in v0.9.8
func (r *GrpcRunner) Pid() int
type LanguageRunner ¶ added in v0.5.0
func StartRunner ¶ added in v0.8.1
func StartRunner(manifest *manifest.Manifest, port string, outputStreamWriter io.Writer, killChannel chan bool, debug bool) (*LanguageRunner, error)
Looks for a runner configuration inside the runner directory finds the runner configuration matching to the manifest and executes the commands for the current OS
func (*LanguageRunner) Alive ¶ added in v1.0.4
func (r *LanguageRunner) Alive() bool
func (*LanguageRunner) Connection ¶ added in v0.5.0
func (r *LanguageRunner) Connection() net.Conn
func (*LanguageRunner) EnsureConnected ¶ added in v1.0.4
func (r *LanguageRunner) EnsureConnected() bool
func (*LanguageRunner) ExecuteAndGetStatus ¶ added in v0.5.0
func (r *LanguageRunner) ExecuteAndGetStatus(message *gauge_messages.Message) *gauge_messages.ProtoExecutionResult
ExecuteAndGetStatus invokes the runner with a request and waits for response. error is thrown only when unable to connect to runner
func (*LanguageRunner) ExecuteMessageWithTimeout ¶ added in v0.9.8
func (r *LanguageRunner) ExecuteMessageWithTimeout(message *gauge_messages.Message) (*gauge_messages.Message, error)
func (*LanguageRunner) IsMultithreaded ¶ added in v0.8.1
func (r *LanguageRunner) IsMultithreaded() bool
func (*LanguageRunner) Kill ¶ added in v0.5.0
func (r *LanguageRunner) Kill() error
func (*LanguageRunner) Pid ¶ added in v0.7.0
func (r *LanguageRunner) Pid() int
type MultithreadedRunner ¶ added in v0.8.1
type MultithreadedRunner struct {
// contains filtered or unexported fields
}
func (*MultithreadedRunner) Alive ¶ added in v1.0.4
func (r *MultithreadedRunner) Alive() bool
func (*MultithreadedRunner) Connection ¶ added in v0.8.1
func (r *MultithreadedRunner) Connection() net.Conn
func (*MultithreadedRunner) ExecuteAndGetStatus ¶ added in v0.8.1
func (r *MultithreadedRunner) ExecuteAndGetStatus(message *gauge_messages.Message) *gauge_messages.ProtoExecutionResult
func (*MultithreadedRunner) ExecuteMessageWithTimeout ¶ added in v0.9.8
func (r *MultithreadedRunner) ExecuteMessageWithTimeout(message *gauge_messages.Message) (*gauge_messages.Message, error)
func (*MultithreadedRunner) IsMultithreaded ¶ added in v0.8.1
func (r *MultithreadedRunner) IsMultithreaded() bool
func (*MultithreadedRunner) Kill ¶ added in v0.8.1
func (r *MultithreadedRunner) Kill() error
func (*MultithreadedRunner) Pid ¶ added in v0.8.1
func (r *MultithreadedRunner) Pid() int
func (*MultithreadedRunner) SetConnection ¶ added in v0.8.1
func (r *MultithreadedRunner) SetConnection(c net.Conn)
type Runner ¶
type Runner interface { ExecuteAndGetStatus(m *gauge_messages.Message) *gauge_messages.ProtoExecutionResult ExecuteMessageWithTimeout(m *gauge_messages.Message) (*gauge_messages.Message, error) Alive() bool Kill() error Connection() net.Conn IsMultithreaded() bool Pid() int }
type RunnerInfo ¶ added in v0.5.0
type RunnerInfo struct { Id string Name string Version string Description string Run struct { Windows []string Linux []string Darwin []string } Init struct { Windows []string Linux []string Darwin []string } Lib string Multithreaded bool GaugeVersionSupport version.VersionSupport LspLangId string }
func GetRunnerInfo ¶
func GetRunnerInfo(language string) (*RunnerInfo, error)
type StartChannels ¶
Click to show internal directories.
Click to hide internal directories.