kclvm_runtime

package
v0.4.2-alpha.7 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2022 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrPython3NotFound   = errors.New("python3 not found")
	ErrKclvmRootNotFound = errors.New("kclvm root not found")
)
View Source
var (
	Debug bool
)

Functions

func GetKclvmPath

func GetKclvmPath() (string, error)

func InitKclvmRoot

func InitKclvmRoot(kclvmRoot string)

func InitRuntime

func InitRuntime(maxProc int)

func MustGetKclvmPath

func MustGetKclvmPath() string

Types

type BuiltinServiceClient

type BuiltinServiceClient struct {
	*Runtime
}

func (*BuiltinServiceClient) ListMethod

func (p *BuiltinServiceClient) ListMethod(args *gpyrpc.ListMethod_Args) (resp *gpyrpc.ListMethod_Result, err error)

func (*BuiltinServiceClient) Ping

func (p *BuiltinServiceClient) Ping(args *gpyrpc.Ping_Args) (resp *gpyrpc.Ping_Result, err error)

type Runtime

type Runtime struct {
	// contains filtered or unexported fields
}

func GetRuntime

func GetRuntime() *Runtime

func NewRuntime

func NewRuntime(maxProc int, exe string, args ...string) *Runtime

func (*Runtime) Close

func (p *Runtime) Close() error

func (*Runtime) DoTask

func (p *Runtime) DoTask(task func(c *rpc.Client, stderr io.Reader))

func (*Runtime) Start

func (p *Runtime) Start()

Jump to

Keyboard shortcuts

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