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 ServerAddress
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 ServerAddress ¶
type ServerAddress struct {
Log *zap.SugaredLogger
Address string
HasAddr chan struct{}
}
func StartPythonClient ¶
func StartPythonClient(ctx context.Context, debugConfig DebugConfig, pythonPath string) (*exec.Cmd, *ServerAddress, error)
Click to show internal directories.
Click to hide internal directories.