Documentation ¶
Index ¶
- Constants
- func CallRestMethod(host, method string, input, output proto.Message) error
- func RunGrpcServer(address string) error
- func RunRestServer(address string) error
- type BuiltinServiceClient
- type KclvmService
- type KclvmServiceClient
- func (p *KclvmServiceClient) ExecProgram(args *gpyrpc.ExecProgram_Args) (resp *gpyrpc.ExecProgram_Result, err error)
- func (p *KclvmServiceClient) FormatCode(args *gpyrpc.FormatCode_Args) (resp *gpyrpc.FormatCode_Result, err error)
- func (p *KclvmServiceClient) FormatPath(args *gpyrpc.FormatPath_Args) (resp *gpyrpc.FormatPath_Result, err error)
- func (p *KclvmServiceClient) GetFullSchemaType(args *gpyrpc.GetFullSchemaType_Args) (resp *gpyrpc.GetSchemaType_Result, err error)
- func (p *KclvmServiceClient) GetSchemaType(args *gpyrpc.GetSchemaType_Args) (resp *gpyrpc.GetSchemaType_Result, err error)
- func (p *KclvmServiceClient) GetSchemaTypeMapping(args *gpyrpc.GetSchemaTypeMapping_Args) (resp *gpyrpc.GetSchemaTypeMapping_Result, err error)
- func (p *KclvmServiceClient) LintPath(args *gpyrpc.LintPath_Args) (resp *gpyrpc.LintPath_Result, err error)
- func (p *KclvmServiceClient) ListDepFiles(args *gpyrpc.ListDepFiles_Args) (resp *gpyrpc.ListDepFiles_Result, err error)
- func (p *KclvmServiceClient) LoadSettingsFiles(args *gpyrpc.LoadSettingsFiles_Args) (resp *gpyrpc.LoadSettingsFiles_Result, err error)
- func (p *KclvmServiceClient) OverrideFile(args *gpyrpc.OverrideFile_Args) (resp *gpyrpc.OverrideFile_Result, err error)
- func (p *KclvmServiceClient) Ping(args *gpyrpc.Ping_Args) (resp *gpyrpc.Ping_Result, err error)
- func (p *KclvmServiceClient) Rename(args *gpyrpc.Rename_Args) (resp *gpyrpc.Rename_Result, err error)
- func (p *KclvmServiceClient) RenameCode(args *gpyrpc.RenameCode_Args) (resp *gpyrpc.RenameCode_Result, err error)
- func (p *KclvmServiceClient) Test(args *gpyrpc.Test_Args) (resp *gpyrpc.Test_Result, err error)
- func (p *KclvmServiceClient) ValidateCode(args *gpyrpc.ValidateCode_Args) (resp *gpyrpc.ValidateCode_Result, err error)
- type RestfulResult
- type ServerError
Constants ¶
View Source
const KCLVM_SERVER_ERROR_CODE int64 = 0x4B434C // the ASCII code of "KCL"
Variables ¶
This section is empty.
Functions ¶
func CallRestMethod ¶
CallRestMethod call an restful method.
func RunGrpcServer ¶
func RunRestServer ¶
Types ¶
type BuiltinServiceClient ¶
type BuiltinServiceClient = kclvm_runtime.BuiltinServiceClient
func NewBuiltinServiceClient ¶
func NewBuiltinServiceClient() *BuiltinServiceClient
type KclvmService ¶
type KclvmService interface { Ping(in *gpyrpc.Ping_Args) (out *gpyrpc.Ping_Result, err error) ExecProgram(in *gpyrpc.ExecProgram_Args) (out *gpyrpc.ExecProgram_Result, err error) FormatCode(in *gpyrpc.FormatCode_Args) (out *gpyrpc.FormatCode_Result, err error) FormatPath(in *gpyrpc.FormatPath_Args) (out *gpyrpc.FormatPath_Result, err error) LintPath(in *gpyrpc.LintPath_Args) (out *gpyrpc.LintPath_Result, err error) OverrideFile(in *gpyrpc.OverrideFile_Args) (out *gpyrpc.OverrideFile_Result, err error) GetSchemaType(in *gpyrpc.GetSchemaType_Args) (out *gpyrpc.GetSchemaType_Result, err error) GetSchemaTypeMapping(in *gpyrpc.GetSchemaTypeMapping_Args) (out *gpyrpc.GetSchemaTypeMapping_Result, err error) GetFullSchemaType(in *gpyrpc.GetFullSchemaType_Args) (out *gpyrpc.GetSchemaType_Result, err error) ValidateCode(in *gpyrpc.ValidateCode_Args) (out *gpyrpc.ValidateCode_Result, err error) ListDepFiles(in *gpyrpc.ListDepFiles_Args) (out *gpyrpc.ListDepFiles_Result, err error) LoadSettingsFiles(in *gpyrpc.LoadSettingsFiles_Args) (out *gpyrpc.LoadSettingsFiles_Result, err error) Rename(in *gpyrpc.Rename_Args) (out *gpyrpc.Rename_Result, err error) RenameCode(in *gpyrpc.RenameCode_Args) (out *gpyrpc.RenameCode_Result, err error) Test(in *gpyrpc.Test_Args) (out *gpyrpc.Test_Result, err error) }
type KclvmServiceClient ¶
type KclvmServiceClient struct { Runtime *kclvm_runtime.Runtime // contains filtered or unexported fields }
func NewKclvmServiceClient ¶
func NewKclvmServiceClient() *KclvmServiceClient
func (*KclvmServiceClient) ExecProgram ¶
func (p *KclvmServiceClient) ExecProgram(args *gpyrpc.ExecProgram_Args) (resp *gpyrpc.ExecProgram_Result, err error)
func (*KclvmServiceClient) FormatCode ¶
func (p *KclvmServiceClient) FormatCode(args *gpyrpc.FormatCode_Args) (resp *gpyrpc.FormatCode_Result, err error)
func (*KclvmServiceClient) FormatPath ¶
func (p *KclvmServiceClient) FormatPath(args *gpyrpc.FormatPath_Args) (resp *gpyrpc.FormatPath_Result, err error)
func (*KclvmServiceClient) GetFullSchemaType ¶ added in v0.7.0
func (p *KclvmServiceClient) GetFullSchemaType(args *gpyrpc.GetFullSchemaType_Args) (resp *gpyrpc.GetSchemaType_Result, err error)
func (*KclvmServiceClient) GetSchemaType ¶
func (p *KclvmServiceClient) GetSchemaType(args *gpyrpc.GetSchemaType_Args) (resp *gpyrpc.GetSchemaType_Result, err error)
func (*KclvmServiceClient) GetSchemaTypeMapping ¶
func (p *KclvmServiceClient) GetSchemaTypeMapping(args *gpyrpc.GetSchemaTypeMapping_Args) (resp *gpyrpc.GetSchemaTypeMapping_Result, err error)
func (*KclvmServiceClient) LintPath ¶
func (p *KclvmServiceClient) LintPath(args *gpyrpc.LintPath_Args) (resp *gpyrpc.LintPath_Result, err error)
func (*KclvmServiceClient) ListDepFiles ¶
func (p *KclvmServiceClient) ListDepFiles(args *gpyrpc.ListDepFiles_Args) (resp *gpyrpc.ListDepFiles_Result, err error)
func (*KclvmServiceClient) LoadSettingsFiles ¶
func (p *KclvmServiceClient) LoadSettingsFiles(args *gpyrpc.LoadSettingsFiles_Args) (resp *gpyrpc.LoadSettingsFiles_Result, err error)
func (*KclvmServiceClient) OverrideFile ¶
func (p *KclvmServiceClient) OverrideFile(args *gpyrpc.OverrideFile_Args) (resp *gpyrpc.OverrideFile_Result, err error)
func (*KclvmServiceClient) Ping ¶
func (p *KclvmServiceClient) Ping(args *gpyrpc.Ping_Args) (resp *gpyrpc.Ping_Result, err error)
func (*KclvmServiceClient) Rename ¶ added in v0.7.0
func (p *KclvmServiceClient) Rename(args *gpyrpc.Rename_Args) (resp *gpyrpc.Rename_Result, err error)
func (*KclvmServiceClient) RenameCode ¶ added in v0.7.0
func (p *KclvmServiceClient) RenameCode(args *gpyrpc.RenameCode_Args) (resp *gpyrpc.RenameCode_Result, err error)
func (*KclvmServiceClient) Test ¶ added in v0.7.0
func (p *KclvmServiceClient) Test(args *gpyrpc.Test_Args) (resp *gpyrpc.Test_Result, err error)
func (*KclvmServiceClient) ValidateCode ¶
func (p *KclvmServiceClient) ValidateCode(args *gpyrpc.ValidateCode_Args) (resp *gpyrpc.ValidateCode_Result, err error)
type RestfulResult ¶
Client represents an restful method result.
type ServerError ¶
Click to show internal directories.
Click to hide internal directories.