language_host

package
v0.7.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 21, 2024 License: Apache-2.0 Imports: 19 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DebugConfig

type DebugConfig struct {
	Port int
	Mode string
}

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 (*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)

func (*ServerState) Write added in v0.7.2

func (f *ServerState) Write(b []byte) (int, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL