Documentation ¶
Index ¶
- type DebugConfig
- type LanguageHost
- func (irs *LanguageHost) Close() error
- func (irs *LanguageHost) GetIR(ctx context.Context, req *pb.IRRequest) (*model.ApplicationEnvironment, error)
- func (irs *LanguageHost) NewClient() pb.KlothoServiceClient
- func (irs *LanguageHost) Start(ctx context.Context, debug DebugConfig, pythonPath string) (err error)
- type ServerState
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DebugConfig ¶
func (DebugConfig) Enabled ¶
func (cfg DebugConfig) Enabled() bool
type LanguageHost ¶
type LanguageHost struct {
// contains filtered or unexported fields
}
func (*LanguageHost) Close ¶
func (irs *LanguageHost) Close() error
func (*LanguageHost) GetIR ¶
func (irs *LanguageHost) GetIR(ctx context.Context, req *pb.IRRequest) (*model.ApplicationEnvironment, error)
func (*LanguageHost) NewClient ¶
func (irs *LanguageHost) NewClient() pb.KlothoServiceClient
func (*LanguageHost) Start ¶
func (irs *LanguageHost) Start(ctx context.Context, debug DebugConfig, pythonPath string) (err error)
type ServerState ¶ added in v0.7.2
type ServerState struct { Log *zap.SugaredLogger Address string Error error Done chan struct{} }
func NewServerState ¶ added in v0.7.2
func NewServerState(log *zap.SugaredLogger) *ServerState
func StartPythonClient ¶
func StartPythonClient(ctx context.Context, debugConfig DebugConfig, pythonPath string) (*exec.Cmd, *ServerState, error)
Click to show internal directories.
Click to hide internal directories.