native

package
v0.10.0-rc.2 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2024 License: Apache-2.0 Imports: 10 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteKclvmService

func DeleteKclvmService(serv *C.kclvm_service)

NewKclvmService releases the memory of kclvm_service

func KclvmServiceCall

func KclvmServiceCall(serv *C.kclvm_service, method *C.char, args *C.char, args_len C.size_t) (*C.char, C.size_t)

KclvmServiceCall calls kclvm service by c api args should be serialized as protobuf byte stream

func KclvmServiceFreeString

func KclvmServiceFreeString(str *C.char)

KclvmServiceFreeString releases the memory of the return value of KclvmServiceCall

func NewKclvmService

func NewKclvmService(pluginAgent C.uint64_t) *C.kclvm_service

NewKclvmService takes a pluginAgent and returns a pointer of capi kclvm_service. pluginAgent is the address of C function pointer with type :const char * (*)(const char *method,const char *args,const char *kwargs), in which "method" is the fully qualified name of plugin method, and "args" ,"kwargs" and return value of pluginAgent are JSON string

func NewNativeServiceClient

func NewNativeServiceClient() api.ServiceClient

Types

type NativeServiceClient

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

func NewNativeServiceClientWithPluginAgent

func NewNativeServiceClientWithPluginAgent(pluginAgent uint64) *NativeServiceClient

func (*NativeServiceClient) BuildProgram

Depreciated: Please use the env.EnableFastEvalMode() and c.ExecutProgram method and will be removed in v0.11.0.

func (*NativeServiceClient) ExecArtifact

Depreciated: Please use the env.EnableFastEvalMode() and c.ExecutProgram method and will be removed in v0.11.0.

func (*NativeServiceClient) ExecProgram

func (*NativeServiceClient) FormatCode

func (*NativeServiceClient) FormatPath

func (*NativeServiceClient) GetSchemaTypeMapping

func (*NativeServiceClient) GetVersion

func (*NativeServiceClient) LintPath

func (*NativeServiceClient) ListDepFiles

func (*NativeServiceClient) ListOptions

func (*NativeServiceClient) ListVariables

func (*NativeServiceClient) LoadPackage

func (*NativeServiceClient) LoadSettingsFiles

func (*NativeServiceClient) OverrideFile

func (*NativeServiceClient) ParseFile

func (*NativeServiceClient) ParseProgram

func (*NativeServiceClient) Ping

func (*NativeServiceClient) Rename

func (*NativeServiceClient) RenameCode

func (*NativeServiceClient) Test

func (*NativeServiceClient) UpdateDependencies

func (*NativeServiceClient) ValidateCode

Jump to

Keyboard shortcuts

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