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