kclvm_runtime

package
v0.4.2-alpha.5 Latest Latest
Warning

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

Go to latest
Published: May 26, 2022 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Debug bool
)
View Source
var ErrKclvmNotFound = errors.New("kclvm not found")

Functions

func GetKclvmPath

func GetKclvmPath() (string, error)

func InitKclvmPath

func InitKclvmPath(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