language_host

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

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

func (*ServerAddress) Write

func (f *ServerAddress) 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