Documentation
¶
Index ¶
- func DeleteKclvmService(serv *C.kclvm_service)
- func KclvmServiceCall(serv *C.kclvm_service, method *C.char, args *C.char, args_len C.size_t) (*C.char, C.size_t)
- func KclvmServiceFreeString(str *C.char)
- func NewKclvmService(pluginAgent C.uint64_t) *C.kclvm_service
- func NewNativeServiceClient() api.ServiceClient
- type NativeServiceClient
- func (c *NativeServiceClient) BuildProgram(in *api.BuildProgram_Args) (*api.BuildProgram_Result, error)
- func (c *NativeServiceClient) ExecArtifact(in *api.ExecArtifact_Args) (*api.ExecProgram_Result, error)
- func (c *NativeServiceClient) ExecProgram(in *api.ExecProgram_Args) (*api.ExecProgram_Result, error)
- func (c *NativeServiceClient) FormatCode(in *api.FormatCode_Args) (*api.FormatCode_Result, error)
- func (c *NativeServiceClient) FormatPath(in *api.FormatPath_Args) (*api.FormatPath_Result, error)
- func (c *NativeServiceClient) GetSchemaTypeMapping(in *api.GetSchemaTypeMapping_Args) (*api.GetSchemaTypeMapping_Result, error)
- func (c *NativeServiceClient) GetVersion(in *api.GetVersion_Args) (*api.GetVersion_Result, error)
- func (c *NativeServiceClient) LintPath(in *api.LintPath_Args) (*api.LintPath_Result, error)
- func (c *NativeServiceClient) ListDepFiles(in *api.ListDepFiles_Args) (*api.ListDepFiles_Result, error)
- func (c *NativeServiceClient) ListOptions(in *api.ParseProgram_Args) (*api.ListOptions_Result, error)
- func (c *NativeServiceClient) ListVariables(in *api.ListVariables_Args) (*api.ListVariables_Result, error)
- func (c *NativeServiceClient) LoadPackage(in *api.LoadPackage_Args) (*api.LoadPackage_Result, error)
- func (c *NativeServiceClient) LoadSettingsFiles(in *api.LoadSettingsFiles_Args) (*api.LoadSettingsFiles_Result, error)
- func (c *NativeServiceClient) OverrideFile(in *api.OverrideFile_Args) (*api.OverrideFile_Result, error)
- func (c *NativeServiceClient) ParseFile(in *api.ParseFile_Args) (*api.ParseFile_Result, error)
- func (c *NativeServiceClient) ParseProgram(in *api.ParseProgram_Args) (*api.ParseProgram_Result, error)
- func (c *NativeServiceClient) Ping(in *api.Ping_Args) (*api.Ping_Result, error)
- func (c *NativeServiceClient) Rename(in *api.Rename_Args) (*api.Rename_Result, error)
- func (c *NativeServiceClient) RenameCode(in *api.RenameCode_Args) (*api.RenameCode_Result, error)
- func (c *NativeServiceClient) Test(in *api.Test_Args) (*api.Test_Result, error)
- func (c *NativeServiceClient) UpdateDependencies(in *api.UpdateDependencies_Args) (*api.UpdateDependencies_Result, error)
- func (c *NativeServiceClient) ValidateCode(in *api.ValidateCode_Args) (*api.ValidateCode_Result, error)
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 ¶
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 ¶
func (c *NativeServiceClient) BuildProgram(in *api.BuildProgram_Args) (*api.BuildProgram_Result, error)
Depreciated: Please use the env.EnableFastEvalMode() and c.ExecutProgram method and will be removed in v0.11.0.
func (*NativeServiceClient) ExecArtifact ¶
func (c *NativeServiceClient) ExecArtifact(in *api.ExecArtifact_Args) (*api.ExecProgram_Result, error)
Depreciated: Please use the env.EnableFastEvalMode() and c.ExecutProgram method and will be removed in v0.11.0.
func (*NativeServiceClient) ExecProgram ¶
func (c *NativeServiceClient) ExecProgram(in *api.ExecProgram_Args) (*api.ExecProgram_Result, error)
func (*NativeServiceClient) FormatCode ¶
func (c *NativeServiceClient) FormatCode(in *api.FormatCode_Args) (*api.FormatCode_Result, error)
func (*NativeServiceClient) FormatPath ¶
func (c *NativeServiceClient) FormatPath(in *api.FormatPath_Args) (*api.FormatPath_Result, error)
func (*NativeServiceClient) GetSchemaTypeMapping ¶
func (c *NativeServiceClient) GetSchemaTypeMapping(in *api.GetSchemaTypeMapping_Args) (*api.GetSchemaTypeMapping_Result, error)
func (*NativeServiceClient) GetVersion ¶
func (c *NativeServiceClient) GetVersion(in *api.GetVersion_Args) (*api.GetVersion_Result, error)
func (*NativeServiceClient) LintPath ¶
func (c *NativeServiceClient) LintPath(in *api.LintPath_Args) (*api.LintPath_Result, error)
func (*NativeServiceClient) ListDepFiles ¶
func (c *NativeServiceClient) ListDepFiles(in *api.ListDepFiles_Args) (*api.ListDepFiles_Result, error)
func (*NativeServiceClient) ListOptions ¶
func (c *NativeServiceClient) ListOptions(in *api.ParseProgram_Args) (*api.ListOptions_Result, error)
func (*NativeServiceClient) ListVariables ¶
func (c *NativeServiceClient) ListVariables(in *api.ListVariables_Args) (*api.ListVariables_Result, error)
func (*NativeServiceClient) LoadPackage ¶
func (c *NativeServiceClient) LoadPackage(in *api.LoadPackage_Args) (*api.LoadPackage_Result, error)
func (*NativeServiceClient) LoadSettingsFiles ¶
func (c *NativeServiceClient) LoadSettingsFiles(in *api.LoadSettingsFiles_Args) (*api.LoadSettingsFiles_Result, error)
func (*NativeServiceClient) OverrideFile ¶
func (c *NativeServiceClient) OverrideFile(in *api.OverrideFile_Args) (*api.OverrideFile_Result, error)
func (*NativeServiceClient) ParseFile ¶
func (c *NativeServiceClient) ParseFile(in *api.ParseFile_Args) (*api.ParseFile_Result, error)
func (*NativeServiceClient) ParseProgram ¶
func (c *NativeServiceClient) ParseProgram(in *api.ParseProgram_Args) (*api.ParseProgram_Result, error)
func (*NativeServiceClient) Ping ¶
func (c *NativeServiceClient) Ping(in *api.Ping_Args) (*api.Ping_Result, error)
func (*NativeServiceClient) Rename ¶
func (c *NativeServiceClient) Rename(in *api.Rename_Args) (*api.Rename_Result, error)
func (*NativeServiceClient) RenameCode ¶
func (c *NativeServiceClient) RenameCode(in *api.RenameCode_Args) (*api.RenameCode_Result, error)
func (*NativeServiceClient) Test ¶
func (c *NativeServiceClient) Test(in *api.Test_Args) (*api.Test_Result, error)
func (*NativeServiceClient) UpdateDependencies ¶
func (c *NativeServiceClient) UpdateDependencies(in *api.UpdateDependencies_Args) (*api.UpdateDependencies_Result, error)
func (*NativeServiceClient) ValidateCode ¶
func (c *NativeServiceClient) ValidateCode(in *api.ValidateCode_Args) (*api.ValidateCode_Result, error)