Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterToolingServer(s grpc.ServiceRegistrar, srv ToolingServer)
- type AddDependencyRequest
- func (*AddDependencyRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AddDependencyRequest) GetPackageName() string
- func (x *AddDependencyRequest) GetVersion() string
- func (*AddDependencyRequest) ProtoMessage()
- func (x *AddDependencyRequest) ProtoReflect() protoreflect.Message
- func (x *AddDependencyRequest) Reset()
- func (x *AddDependencyRequest) String() string
- type AddDependencyResponse
- func (*AddDependencyResponse) Descriptor() ([]byte, []int)deprecated
- func (x *AddDependencyResponse) GetError() string
- func (x *AddDependencyResponse) GetInstalledVersion() string
- func (x *AddDependencyResponse) GetSuccess() bool
- func (*AddDependencyResponse) ProtoMessage()
- func (x *AddDependencyResponse) ProtoReflect() protoreflect.Message
- func (x *AddDependencyResponse) Reset()
- func (x *AddDependencyResponse) String() string
- type ApplyEditRequest
- func (*ApplyEditRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ApplyEditRequest) GetAutoFix() bool
- func (x *ApplyEditRequest) GetFile() string
- func (x *ApplyEditRequest) GetFind() string
- func (x *ApplyEditRequest) GetReplace() string
- func (*ApplyEditRequest) ProtoMessage()
- func (x *ApplyEditRequest) ProtoReflect() protoreflect.Message
- func (x *ApplyEditRequest) Reset()
- func (x *ApplyEditRequest) String() string
- type ApplyEditResponse
- func (*ApplyEditResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ApplyEditResponse) GetContent() string
- func (x *ApplyEditResponse) GetError() string
- func (x *ApplyEditResponse) GetFixActions() []string
- func (x *ApplyEditResponse) GetStrategy() string
- func (x *ApplyEditResponse) GetSuccess() bool
- func (*ApplyEditResponse) ProtoMessage()
- func (x *ApplyEditResponse) ProtoReflect() protoreflect.Message
- func (x *ApplyEditResponse) Reset()
- func (x *ApplyEditResponse) String() string
- type BuildRequest
- type BuildResponse
- func (*BuildResponse) Descriptor() ([]byte, []int)deprecated
- func (x *BuildResponse) GetDiagnostics() []*Diagnostic
- func (x *BuildResponse) GetOutput() string
- func (x *BuildResponse) GetSuccess() bool
- func (*BuildResponse) ProtoMessage()
- func (x *BuildResponse) ProtoReflect() protoreflect.Message
- func (x *BuildResponse) Reset()
- func (x *BuildResponse) String() string
- type CallEdge
- func (*CallEdge) Descriptor() ([]byte, []int)deprecated
- func (x *CallEdge) GetCallSite() *Location
- func (x *CallEdge) GetCallType() string
- func (x *CallEdge) GetCalleeId() string
- func (x *CallEdge) GetCallerId() string
- func (*CallEdge) ProtoMessage()
- func (x *CallEdge) ProtoReflect() protoreflect.Message
- func (x *CallEdge) Reset()
- func (x *CallEdge) String() string
- type CompletionItem
- func (*CompletionItem) Descriptor() ([]byte, []int)deprecated
- func (x *CompletionItem) GetDetail() string
- func (x *CompletionItem) GetDocumentation() string
- func (x *CompletionItem) GetInsertText() string
- func (x *CompletionItem) GetKind() CompletionKind
- func (x *CompletionItem) GetLabel() string
- func (x *CompletionItem) GetSortText() string
- func (*CompletionItem) ProtoMessage()
- func (x *CompletionItem) ProtoReflect() protoreflect.Message
- func (x *CompletionItem) Reset()
- func (x *CompletionItem) String() string
- type CompletionKind
- func (CompletionKind) Descriptor() protoreflect.EnumDescriptor
- func (x CompletionKind) Enum() *CompletionKind
- func (CompletionKind) EnumDescriptor() ([]byte, []int)deprecated
- func (x CompletionKind) Number() protoreflect.EnumNumber
- func (x CompletionKind) String() string
- func (CompletionKind) Type() protoreflect.EnumType
- type Dependency
- func (*Dependency) Descriptor() ([]byte, []int)deprecated
- func (x *Dependency) GetDirect() bool
- func (x *Dependency) GetName() string
- func (x *Dependency) GetVersion() string
- func (*Dependency) ProtoMessage()
- func (x *Dependency) ProtoReflect() protoreflect.Message
- func (x *Dependency) Reset()
- func (x *Dependency) String() string
- type Diagnostic
- func (*Diagnostic) Descriptor() ([]byte, []int)deprecated
- func (x *Diagnostic) GetCode() string
- func (x *Diagnostic) GetColumn() int32
- func (x *Diagnostic) GetEndColumn() int32
- func (x *Diagnostic) GetEndLine() int32
- func (x *Diagnostic) GetFile() string
- func (x *Diagnostic) GetLine() int32
- func (x *Diagnostic) GetMessage() string
- func (x *Diagnostic) GetSeverity() DiagnosticSeverity
- func (x *Diagnostic) GetSource() string
- func (*Diagnostic) ProtoMessage()
- func (x *Diagnostic) ProtoReflect() protoreflect.Message
- func (x *Diagnostic) Reset()
- func (x *Diagnostic) String() string
- type DiagnosticSeverity
- func (DiagnosticSeverity) Descriptor() protoreflect.EnumDescriptor
- func (x DiagnosticSeverity) Enum() *DiagnosticSeverity
- func (DiagnosticSeverity) EnumDescriptor() ([]byte, []int)deprecated
- func (x DiagnosticSeverity) Number() protoreflect.EnumNumber
- func (x DiagnosticSeverity) String() string
- func (DiagnosticSeverity) Type() protoreflect.EnumType
- type FindReferencesRequest
- func (*FindReferencesRequest) Descriptor() ([]byte, []int)deprecated
- func (x *FindReferencesRequest) GetColumn() int32
- func (x *FindReferencesRequest) GetFile() string
- func (x *FindReferencesRequest) GetLine() int32
- func (*FindReferencesRequest) ProtoMessage()
- func (x *FindReferencesRequest) ProtoReflect() protoreflect.Message
- func (x *FindReferencesRequest) Reset()
- func (x *FindReferencesRequest) String() string
- type FindReferencesResponse
- func (*FindReferencesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *FindReferencesResponse) GetLocations() []*Location
- func (*FindReferencesResponse) ProtoMessage()
- func (x *FindReferencesResponse) ProtoReflect() protoreflect.Message
- func (x *FindReferencesResponse) Reset()
- func (x *FindReferencesResponse) String() string
- type FixRequest
- type FixResponse
- func (*FixResponse) Descriptor() ([]byte, []int)deprecated
- func (x *FixResponse) GetActions() []string
- func (x *FixResponse) GetContent() string
- func (x *FixResponse) GetError() string
- func (x *FixResponse) GetSuccess() bool
- func (*FixResponse) ProtoMessage()
- func (x *FixResponse) ProtoReflect() protoreflect.Message
- func (x *FixResponse) Reset()
- func (x *FixResponse) String() string
- type GetCallGraphRequest
- func (*GetCallGraphRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetCallGraphRequest) GetAlgorithm() string
- func (*GetCallGraphRequest) ProtoMessage()
- func (x *GetCallGraphRequest) ProtoReflect() protoreflect.Message
- func (x *GetCallGraphRequest) Reset()
- func (x *GetCallGraphRequest) String() string
- type GetCallGraphResponse
- func (*GetCallGraphResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetCallGraphResponse) GetAlgorithmUsed() string
- func (x *GetCallGraphResponse) GetCalls() []*CallEdge
- func (x *GetCallGraphResponse) GetError() string
- func (x *GetCallGraphResponse) GetFunctionsAnalyzed() int32
- func (x *GetCallGraphResponse) GetImplements() []*ImplementsEdge
- func (*GetCallGraphResponse) ProtoMessage()
- func (x *GetCallGraphResponse) ProtoReflect() protoreflect.Message
- func (x *GetCallGraphResponse) Reset()
- func (x *GetCallGraphResponse) String() string
- type GetCompletionsRequest
- func (*GetCompletionsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetCompletionsRequest) GetColumn() int32
- func (x *GetCompletionsRequest) GetFile() string
- func (x *GetCompletionsRequest) GetLine() int32
- func (*GetCompletionsRequest) ProtoMessage()
- func (x *GetCompletionsRequest) ProtoReflect() protoreflect.Message
- func (x *GetCompletionsRequest) Reset()
- func (x *GetCompletionsRequest) String() string
- type GetCompletionsResponse
- func (*GetCompletionsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetCompletionsResponse) GetIsIncomplete() bool
- func (x *GetCompletionsResponse) GetItems() []*CompletionItem
- func (*GetCompletionsResponse) ProtoMessage()
- func (x *GetCompletionsResponse) ProtoReflect() protoreflect.Message
- func (x *GetCompletionsResponse) Reset()
- func (x *GetCompletionsResponse) String() string
- type GetDiagnosticsRequest
- func (*GetDiagnosticsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetDiagnosticsRequest) GetFile() string
- func (*GetDiagnosticsRequest) ProtoMessage()
- func (x *GetDiagnosticsRequest) ProtoReflect() protoreflect.Message
- func (x *GetDiagnosticsRequest) Reset()
- func (x *GetDiagnosticsRequest) String() string
- type GetDiagnosticsResponse
- func (*GetDiagnosticsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetDiagnosticsResponse) GetDiagnostics() []*Diagnostic
- func (*GetDiagnosticsResponse) ProtoMessage()
- func (x *GetDiagnosticsResponse) ProtoReflect() protoreflect.Message
- func (x *GetDiagnosticsResponse) Reset()
- func (x *GetDiagnosticsResponse) String() string
- type GetHoverInfoRequest
- func (*GetHoverInfoRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetHoverInfoRequest) GetColumn() int32
- func (x *GetHoverInfoRequest) GetFile() string
- func (x *GetHoverInfoRequest) GetLine() int32
- func (*GetHoverInfoRequest) ProtoMessage()
- func (x *GetHoverInfoRequest) ProtoReflect() protoreflect.Message
- func (x *GetHoverInfoRequest) Reset()
- func (x *GetHoverInfoRequest) String() string
- type GetHoverInfoResponse
- func (*GetHoverInfoResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetHoverInfoResponse) GetContent() string
- func (x *GetHoverInfoResponse) GetLanguage() string
- func (x *GetHoverInfoResponse) GetRange() *Location
- func (*GetHoverInfoResponse) ProtoMessage()
- func (x *GetHoverInfoResponse) ProtoReflect() protoreflect.Message
- func (x *GetHoverInfoResponse) Reset()
- func (x *GetHoverInfoResponse) String() string
- type GetProjectInfoRequest
- type GetProjectInfoResponse
- func (*GetProjectInfoResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetProjectInfoResponse) GetDependencies() []*Dependency
- func (x *GetProjectInfoResponse) GetError() string
- func (x *GetProjectInfoResponse) GetFileHashes() map[string]string
- func (x *GetProjectInfoResponse) GetLanguage() string
- func (x *GetProjectInfoResponse) GetLanguageVersion() string
- func (x *GetProjectInfoResponse) GetModule() string
- func (x *GetProjectInfoResponse) GetPackages() []*PackageInfo
- func (*GetProjectInfoResponse) ProtoMessage()
- func (x *GetProjectInfoResponse) ProtoReflect() protoreflect.Message
- func (x *GetProjectInfoResponse) Reset()
- func (x *GetProjectInfoResponse) String() string
- type GoToDefinitionRequest
- func (*GoToDefinitionRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GoToDefinitionRequest) GetColumn() int32
- func (x *GoToDefinitionRequest) GetFile() string
- func (x *GoToDefinitionRequest) GetLine() int32
- func (*GoToDefinitionRequest) ProtoMessage()
- func (x *GoToDefinitionRequest) ProtoReflect() protoreflect.Message
- func (x *GoToDefinitionRequest) Reset()
- func (x *GoToDefinitionRequest) String() string
- type GoToDefinitionResponse
- func (*GoToDefinitionResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GoToDefinitionResponse) GetLocations() []*Location
- func (*GoToDefinitionResponse) ProtoMessage()
- func (x *GoToDefinitionResponse) ProtoReflect() protoreflect.Message
- func (x *GoToDefinitionResponse) Reset()
- func (x *GoToDefinitionResponse) String() string
- type ImplementsEdge
- func (*ImplementsEdge) Descriptor() ([]byte, []int)deprecated
- func (x *ImplementsEdge) GetInterfaceId() string
- func (x *ImplementsEdge) GetTypeId() string
- func (*ImplementsEdge) ProtoMessage()
- func (x *ImplementsEdge) ProtoReflect() protoreflect.Message
- func (x *ImplementsEdge) Reset()
- func (x *ImplementsEdge) String() string
- type LintRequest
- type LintResponse
- func (*LintResponse) Descriptor() ([]byte, []int)deprecated
- func (x *LintResponse) GetDiagnostics() []*Diagnostic
- func (x *LintResponse) GetOutput() string
- func (x *LintResponse) GetSuccess() bool
- func (*LintResponse) ProtoMessage()
- func (x *LintResponse) ProtoReflect() protoreflect.Message
- func (x *LintResponse) Reset()
- func (x *LintResponse) String() string
- type ListDependenciesRequest
- type ListDependenciesResponse
- func (*ListDependenciesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListDependenciesResponse) GetDependencies() []*Dependency
- func (x *ListDependenciesResponse) GetError() string
- func (*ListDependenciesResponse) ProtoMessage()
- func (x *ListDependenciesResponse) ProtoReflect() protoreflect.Message
- func (x *ListDependenciesResponse) Reset()
- func (x *ListDependenciesResponse) String() string
- type ListSymbolsRequest
- func (*ListSymbolsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListSymbolsRequest) GetFile() string
- func (*ListSymbolsRequest) ProtoMessage()
- func (x *ListSymbolsRequest) ProtoReflect() protoreflect.Message
- func (x *ListSymbolsRequest) Reset()
- func (x *ListSymbolsRequest) String() string
- type ListSymbolsResponse
- func (*ListSymbolsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListSymbolsResponse) GetSymbols() []*Symbol
- func (*ListSymbolsResponse) ProtoMessage()
- func (x *ListSymbolsResponse) ProtoReflect() protoreflect.Message
- func (x *ListSymbolsResponse) Reset()
- func (x *ListSymbolsResponse) String() string
- type Location
- func (*Location) Descriptor() ([]byte, []int)deprecated
- func (x *Location) GetColumn() int32
- func (x *Location) GetEndColumn() int32
- func (x *Location) GetEndLine() int32
- func (x *Location) GetFile() string
- func (x *Location) GetLine() int32
- func (*Location) ProtoMessage()
- func (x *Location) ProtoReflect() protoreflect.Message
- func (x *Location) Reset()
- func (x *Location) String() string
- type PackageInfo
- func (*PackageInfo) Descriptor() ([]byte, []int)deprecated
- func (x *PackageInfo) GetDoc() string
- func (x *PackageInfo) GetFiles() []string
- func (x *PackageInfo) GetImports() []string
- func (x *PackageInfo) GetName() string
- func (x *PackageInfo) GetRelativePath() string
- func (*PackageInfo) ProtoMessage()
- func (x *PackageInfo) ProtoReflect() protoreflect.Message
- func (x *PackageInfo) Reset()
- func (x *PackageInfo) String() string
- type RemoveDependencyRequest
- func (*RemoveDependencyRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RemoveDependencyRequest) GetPackageName() string
- func (*RemoveDependencyRequest) ProtoMessage()
- func (x *RemoveDependencyRequest) ProtoReflect() protoreflect.Message
- func (x *RemoveDependencyRequest) Reset()
- func (x *RemoveDependencyRequest) String() string
- type RemoveDependencyResponse
- func (*RemoveDependencyResponse) Descriptor() ([]byte, []int)deprecated
- func (x *RemoveDependencyResponse) GetError() string
- func (x *RemoveDependencyResponse) GetSuccess() bool
- func (*RemoveDependencyResponse) ProtoMessage()
- func (x *RemoveDependencyResponse) ProtoReflect() protoreflect.Message
- func (x *RemoveDependencyResponse) Reset()
- func (x *RemoveDependencyResponse) String() string
- type RenameSymbolRequest
- func (*RenameSymbolRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RenameSymbolRequest) GetColumn() int32
- func (x *RenameSymbolRequest) GetFile() string
- func (x *RenameSymbolRequest) GetLine() int32
- func (x *RenameSymbolRequest) GetNewName() string
- func (*RenameSymbolRequest) ProtoMessage()
- func (x *RenameSymbolRequest) ProtoReflect() protoreflect.Message
- func (x *RenameSymbolRequest) Reset()
- func (x *RenameSymbolRequest) String() string
- type RenameSymbolResponse
- func (*RenameSymbolResponse) Descriptor() ([]byte, []int)deprecated
- func (x *RenameSymbolResponse) GetEdits() []*TextEdit
- func (x *RenameSymbolResponse) GetError() string
- func (x *RenameSymbolResponse) GetFiles() []string
- func (x *RenameSymbolResponse) GetSuccess() bool
- func (*RenameSymbolResponse) ProtoMessage()
- func (x *RenameSymbolResponse) ProtoReflect() protoreflect.Message
- func (x *RenameSymbolResponse) Reset()
- func (x *RenameSymbolResponse) String() string
- type Symbol
- func (*Symbol) Descriptor() ([]byte, []int)deprecated
- func (x *Symbol) GetBodyHash() string
- func (x *Symbol) GetChildren() []*Symbol
- func (x *Symbol) GetDocumentation() string
- func (x *Symbol) GetKind() SymbolKind
- func (x *Symbol) GetLocation() *Location
- func (x *Symbol) GetName() string
- func (x *Symbol) GetParent() string
- func (x *Symbol) GetQualifiedName() string
- func (x *Symbol) GetSignature() string
- func (x *Symbol) GetSignatureHash() string
- func (*Symbol) ProtoMessage()
- func (x *Symbol) ProtoReflect() protoreflect.Message
- func (x *Symbol) Reset()
- func (x *Symbol) String() string
- type SymbolKind
- type TestRequest
- type TestResponse
- func (*TestResponse) Descriptor() ([]byte, []int)deprecated
- func (x *TestResponse) GetCoveragePct() float32
- func (x *TestResponse) GetFailures() []string
- func (x *TestResponse) GetOutput() string
- func (x *TestResponse) GetSuccess() bool
- func (x *TestResponse) GetTestsFailed() int32
- func (x *TestResponse) GetTestsPassed() int32
- func (x *TestResponse) GetTestsRun() int32
- func (x *TestResponse) GetTestsSkipped() int32
- func (*TestResponse) ProtoMessage()
- func (x *TestResponse) ProtoReflect() protoreflect.Message
- func (x *TestResponse) Reset()
- func (x *TestResponse) String() string
- type TextEdit
- func (*TextEdit) Descriptor() ([]byte, []int)deprecated
- func (x *TextEdit) GetEndColumn() int32
- func (x *TextEdit) GetEndLine() int32
- func (x *TextEdit) GetFile() string
- func (x *TextEdit) GetNewText() string
- func (x *TextEdit) GetStartColumn() int32
- func (x *TextEdit) GetStartLine() int32
- func (*TextEdit) ProtoMessage()
- func (x *TextEdit) ProtoReflect() protoreflect.Message
- func (x *TextEdit) Reset()
- func (x *TextEdit) String() string
- type ToolingClient
- type ToolingServer
- type UnimplementedToolingServer
- func (UnimplementedToolingServer) AddDependency(context.Context, *AddDependencyRequest) (*AddDependencyResponse, error)
- func (UnimplementedToolingServer) ApplyEdit(context.Context, *ApplyEditRequest) (*ApplyEditResponse, error)
- func (UnimplementedToolingServer) Build(context.Context, *BuildRequest) (*BuildResponse, error)
- func (UnimplementedToolingServer) FindReferences(context.Context, *FindReferencesRequest) (*FindReferencesResponse, error)
- func (UnimplementedToolingServer) Fix(context.Context, *FixRequest) (*FixResponse, error)
- func (UnimplementedToolingServer) GetCallGraph(context.Context, *GetCallGraphRequest) (*GetCallGraphResponse, error)
- func (UnimplementedToolingServer) GetCompletions(context.Context, *GetCompletionsRequest) (*GetCompletionsResponse, error)
- func (UnimplementedToolingServer) GetDiagnostics(context.Context, *GetDiagnosticsRequest) (*GetDiagnosticsResponse, error)
- func (UnimplementedToolingServer) GetHoverInfo(context.Context, *GetHoverInfoRequest) (*GetHoverInfoResponse, error)
- func (UnimplementedToolingServer) GetProjectInfo(context.Context, *GetProjectInfoRequest) (*GetProjectInfoResponse, error)
- func (UnimplementedToolingServer) GoToDefinition(context.Context, *GoToDefinitionRequest) (*GoToDefinitionResponse, error)
- func (UnimplementedToolingServer) Lint(context.Context, *LintRequest) (*LintResponse, error)
- func (UnimplementedToolingServer) ListDependencies(context.Context, *ListDependenciesRequest) (*ListDependenciesResponse, error)
- func (UnimplementedToolingServer) ListSymbols(context.Context, *ListSymbolsRequest) (*ListSymbolsResponse, error)
- func (UnimplementedToolingServer) RemoveDependency(context.Context, *RemoveDependencyRequest) (*RemoveDependencyResponse, error)
- func (UnimplementedToolingServer) RenameSymbol(context.Context, *RenameSymbolRequest) (*RenameSymbolResponse, error)
- func (UnimplementedToolingServer) Test(context.Context, *TestRequest) (*TestResponse, error)
- type UnsafeToolingServer
Constants ¶
const ( Tooling_ListSymbols_FullMethodName = "/codefly.services.tooling.v0.Tooling/ListSymbols" Tooling_GetDiagnostics_FullMethodName = "/codefly.services.tooling.v0.Tooling/GetDiagnostics" Tooling_GoToDefinition_FullMethodName = "/codefly.services.tooling.v0.Tooling/GoToDefinition" Tooling_FindReferences_FullMethodName = "/codefly.services.tooling.v0.Tooling/FindReferences" Tooling_RenameSymbol_FullMethodName = "/codefly.services.tooling.v0.Tooling/RenameSymbol" Tooling_GetHoverInfo_FullMethodName = "/codefly.services.tooling.v0.Tooling/GetHoverInfo" Tooling_GetCompletions_FullMethodName = "/codefly.services.tooling.v0.Tooling/GetCompletions" Tooling_Fix_FullMethodName = "/codefly.services.tooling.v0.Tooling/Fix" Tooling_ApplyEdit_FullMethodName = "/codefly.services.tooling.v0.Tooling/ApplyEdit" Tooling_ListDependencies_FullMethodName = "/codefly.services.tooling.v0.Tooling/ListDependencies" Tooling_AddDependency_FullMethodName = "/codefly.services.tooling.v0.Tooling/AddDependency" Tooling_RemoveDependency_FullMethodName = "/codefly.services.tooling.v0.Tooling/RemoveDependency" Tooling_GetProjectInfo_FullMethodName = "/codefly.services.tooling.v0.Tooling/GetProjectInfo" Tooling_GetCallGraph_FullMethodName = "/codefly.services.tooling.v0.Tooling/GetCallGraph" Tooling_Build_FullMethodName = "/codefly.services.tooling.v0.Tooling/Build" Tooling_Test_FullMethodName = "/codefly.services.tooling.v0.Tooling/Test" Tooling_Lint_FullMethodName = "/codefly.services.tooling.v0.Tooling/Lint" )
Variables ¶
var ( SymbolKind_name = map[int32]string{ 0: "SYMBOL_KIND_UNKNOWN", 1: "SYMBOL_KIND_FUNCTION", 2: "SYMBOL_KIND_METHOD", 3: "SYMBOL_KIND_STRUCT", 4: "SYMBOL_KIND_INTERFACE", 5: "SYMBOL_KIND_CONSTANT", 6: "SYMBOL_KIND_VARIABLE", 7: "SYMBOL_KIND_TYPE_ALIAS", 8: "SYMBOL_KIND_PACKAGE", 9: "SYMBOL_KIND_FIELD", 10: "SYMBOL_KIND_ENUM", 11: "SYMBOL_KIND_CLASS", } SymbolKind_value = map[string]int32{ "SYMBOL_KIND_UNKNOWN": 0, "SYMBOL_KIND_FUNCTION": 1, "SYMBOL_KIND_METHOD": 2, "SYMBOL_KIND_STRUCT": 3, "SYMBOL_KIND_INTERFACE": 4, "SYMBOL_KIND_CONSTANT": 5, "SYMBOL_KIND_VARIABLE": 6, "SYMBOL_KIND_TYPE_ALIAS": 7, "SYMBOL_KIND_PACKAGE": 8, "SYMBOL_KIND_FIELD": 9, "SYMBOL_KIND_ENUM": 10, "SYMBOL_KIND_CLASS": 11, } )
Enum value maps for SymbolKind.
var ( DiagnosticSeverity_name = map[int32]string{ 0: "DIAGNOSTIC_SEVERITY_UNKNOWN", 1: "DIAGNOSTIC_SEVERITY_ERROR", 2: "DIAGNOSTIC_SEVERITY_WARNING", 3: "DIAGNOSTIC_SEVERITY_INFORMATION", 4: "DIAGNOSTIC_SEVERITY_HINT", } DiagnosticSeverity_value = map[string]int32{ "DIAGNOSTIC_SEVERITY_UNKNOWN": 0, "DIAGNOSTIC_SEVERITY_ERROR": 1, "DIAGNOSTIC_SEVERITY_WARNING": 2, "DIAGNOSTIC_SEVERITY_INFORMATION": 3, "DIAGNOSTIC_SEVERITY_HINT": 4, } )
Enum value maps for DiagnosticSeverity.
var ( CompletionKind_name = map[int32]string{ 0: "COMPLETION_KIND_UNKNOWN", 1: "COMPLETION_KIND_TEXT", 2: "COMPLETION_KIND_METHOD", 3: "COMPLETION_KIND_FUNCTION", 4: "COMPLETION_KIND_CONSTRUCTOR", 5: "COMPLETION_KIND_FIELD", 6: "COMPLETION_KIND_VARIABLE", 7: "COMPLETION_KIND_CLASS", 8: "COMPLETION_KIND_INTERFACE", 9: "COMPLETION_KIND_MODULE", 10: "COMPLETION_KIND_PROPERTY", 13: "COMPLETION_KIND_ENUM", 14: "COMPLETION_KIND_KEYWORD", 15: "COMPLETION_KIND_SNIPPET", 21: "COMPLETION_KIND_CONSTANT", 22: "COMPLETION_KIND_STRUCT", 25: "COMPLETION_KIND_TYPE_PARAMETER", } CompletionKind_value = map[string]int32{ "COMPLETION_KIND_UNKNOWN": 0, "COMPLETION_KIND_TEXT": 1, "COMPLETION_KIND_METHOD": 2, "COMPLETION_KIND_FUNCTION": 3, "COMPLETION_KIND_CONSTRUCTOR": 4, "COMPLETION_KIND_FIELD": 5, "COMPLETION_KIND_VARIABLE": 6, "COMPLETION_KIND_CLASS": 7, "COMPLETION_KIND_INTERFACE": 8, "COMPLETION_KIND_MODULE": 9, "COMPLETION_KIND_PROPERTY": 10, "COMPLETION_KIND_ENUM": 13, "COMPLETION_KIND_KEYWORD": 14, "COMPLETION_KIND_SNIPPET": 15, "COMPLETION_KIND_CONSTANT": 21, "COMPLETION_KIND_STRUCT": 22, "COMPLETION_KIND_TYPE_PARAMETER": 25, } )
Enum value maps for CompletionKind.
var File_codefly_services_tooling_v0_tooling_proto protoreflect.FileDescriptor
var Tooling_ServiceDesc = grpc.ServiceDesc{ ServiceName: "codefly.services.tooling.v0.Tooling", HandlerType: (*ToolingServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "ListSymbols", Handler: _Tooling_ListSymbols_Handler, }, { MethodName: "GetDiagnostics", Handler: _Tooling_GetDiagnostics_Handler, }, { MethodName: "GoToDefinition", Handler: _Tooling_GoToDefinition_Handler, }, { MethodName: "FindReferences", Handler: _Tooling_FindReferences_Handler, }, { MethodName: "RenameSymbol", Handler: _Tooling_RenameSymbol_Handler, }, { MethodName: "GetHoverInfo", Handler: _Tooling_GetHoverInfo_Handler, }, { MethodName: "GetCompletions", Handler: _Tooling_GetCompletions_Handler, }, { MethodName: "Fix", Handler: _Tooling_Fix_Handler, }, { MethodName: "ApplyEdit", Handler: _Tooling_ApplyEdit_Handler, }, { MethodName: "ListDependencies", Handler: _Tooling_ListDependencies_Handler, }, { MethodName: "AddDependency", Handler: _Tooling_AddDependency_Handler, }, { MethodName: "RemoveDependency", Handler: _Tooling_RemoveDependency_Handler, }, { MethodName: "GetProjectInfo", Handler: _Tooling_GetProjectInfo_Handler, }, { MethodName: "GetCallGraph", Handler: _Tooling_GetCallGraph_Handler, }, { MethodName: "Build", Handler: _Tooling_Build_Handler, }, { MethodName: "Test", Handler: _Tooling_Test_Handler, }, { MethodName: "Lint", Handler: _Tooling_Lint_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "codefly/services/tooling/v0/tooling.proto", }
Tooling_ServiceDesc is the grpc.ServiceDesc for Tooling service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterToolingServer ¶
func RegisterToolingServer(s grpc.ServiceRegistrar, srv ToolingServer)
Types ¶
type AddDependencyRequest ¶
type AddDependencyRequest struct {
// package_name is the package or dependency identifier used by the native manager.
PackageName string `protobuf:"bytes,1,opt,name=package_name,json=packageName,proto3" json:"package_name,omitempty"`
// version is the semantic or service-specific version for this resource.
Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
// contains filtered or unexported fields
}
AddDependencyRequest identifies a package to install with the native package manager.
func (*AddDependencyRequest) Descriptor
deprecated
func (*AddDependencyRequest) Descriptor() ([]byte, []int)
Deprecated: Use AddDependencyRequest.ProtoReflect.Descriptor instead.
func (*AddDependencyRequest) GetPackageName ¶
func (x *AddDependencyRequest) GetPackageName() string
func (*AddDependencyRequest) GetVersion ¶
func (x *AddDependencyRequest) GetVersion() string
func (*AddDependencyRequest) ProtoMessage ¶
func (*AddDependencyRequest) ProtoMessage()
func (*AddDependencyRequest) ProtoReflect ¶
func (x *AddDependencyRequest) ProtoReflect() protoreflect.Message
func (*AddDependencyRequest) Reset ¶
func (x *AddDependencyRequest) Reset()
func (*AddDependencyRequest) String ¶
func (x *AddDependencyRequest) String() string
type AddDependencyResponse ¶
type AddDependencyResponse struct {
// success is true when the requested operation completed successfully.
Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
// error explains why the operation failed; empty means success at this layer.
Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"`
// installed_version is the version resolved by the package manager.
InstalledVersion string `protobuf:"bytes,3,opt,name=installed_version,json=installedVersion,proto3" json:"installed_version,omitempty"`
// contains filtered or unexported fields
}
AddDependencyResponse reports the dependency version resolved by the package manager.
func (*AddDependencyResponse) Descriptor
deprecated
func (*AddDependencyResponse) Descriptor() ([]byte, []int)
Deprecated: Use AddDependencyResponse.ProtoReflect.Descriptor instead.
func (*AddDependencyResponse) GetError ¶
func (x *AddDependencyResponse) GetError() string
func (*AddDependencyResponse) GetInstalledVersion ¶
func (x *AddDependencyResponse) GetInstalledVersion() string
func (*AddDependencyResponse) GetSuccess ¶
func (x *AddDependencyResponse) GetSuccess() bool
func (*AddDependencyResponse) ProtoMessage ¶
func (*AddDependencyResponse) ProtoMessage()
func (*AddDependencyResponse) ProtoReflect ¶
func (x *AddDependencyResponse) ProtoReflect() protoreflect.Message
func (*AddDependencyResponse) Reset ¶
func (x *AddDependencyResponse) Reset()
func (*AddDependencyResponse) String ¶
func (x *AddDependencyResponse) String() string
type ApplyEditRequest ¶
type ApplyEditRequest struct {
// file is a workspace- or service-relative source file path.
File string `protobuf:"bytes,1,opt,name=file,proto3" json:"file,omitempty"`
// find is the text to locate before applying a replacement.
Find string `protobuf:"bytes,2,opt,name=find,proto3" json:"find,omitempty"`
// replace is the replacement text inserted by the edit.
Replace string `protobuf:"bytes,3,opt,name=replace,proto3" json:"replace,omitempty"`
// auto_fix asks the agent to run formatters after the edit.
AutoFix bool `protobuf:"varint,4,opt,name=auto_fix,json=autoFix,proto3" json:"auto_fix,omitempty"`
// contains filtered or unexported fields
}
ApplyEditRequest asks the agent to apply a language-aware find/replace edit.
func (*ApplyEditRequest) Descriptor
deprecated
func (*ApplyEditRequest) Descriptor() ([]byte, []int)
Deprecated: Use ApplyEditRequest.ProtoReflect.Descriptor instead.
func (*ApplyEditRequest) GetAutoFix ¶
func (x *ApplyEditRequest) GetAutoFix() bool
func (*ApplyEditRequest) GetFile ¶
func (x *ApplyEditRequest) GetFile() string
func (*ApplyEditRequest) GetFind ¶
func (x *ApplyEditRequest) GetFind() string
func (*ApplyEditRequest) GetReplace ¶
func (x *ApplyEditRequest) GetReplace() string
func (*ApplyEditRequest) ProtoMessage ¶
func (*ApplyEditRequest) ProtoMessage()
func (*ApplyEditRequest) ProtoReflect ¶
func (x *ApplyEditRequest) ProtoReflect() protoreflect.Message
func (*ApplyEditRequest) Reset ¶
func (x *ApplyEditRequest) Reset()
func (*ApplyEditRequest) String ¶
func (x *ApplyEditRequest) String() string
type ApplyEditResponse ¶
type ApplyEditResponse struct {
// success is true when the requested operation completed successfully.
Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
// content is the file content after the edit and optional fixers.
Content string `protobuf:"bytes,2,opt,name=content,proto3" json:"content,omitempty"`
// error explains why the operation failed; empty means success at this layer.
Error string `protobuf:"bytes,3,opt,name=error,proto3" json:"error,omitempty"`
// strategy names the edit or execution strategy that produced the result.
Strategy string `protobuf:"bytes,4,opt,name=strategy,proto3" json:"strategy,omitempty"`
// fix_actions names formatters or import fixers that ran after the edit.
FixActions []string `protobuf:"bytes,5,rep,name=fix_actions,json=fixActions,proto3" json:"fix_actions,omitempty"`
// contains filtered or unexported fields
}
ApplyEditResponse reports the selected strategy and post-edit content.
func (*ApplyEditResponse) Descriptor
deprecated
func (*ApplyEditResponse) Descriptor() ([]byte, []int)
Deprecated: Use ApplyEditResponse.ProtoReflect.Descriptor instead.
func (*ApplyEditResponse) GetContent ¶
func (x *ApplyEditResponse) GetContent() string
func (*ApplyEditResponse) GetError ¶
func (x *ApplyEditResponse) GetError() string
func (*ApplyEditResponse) GetFixActions ¶
func (x *ApplyEditResponse) GetFixActions() []string
func (*ApplyEditResponse) GetStrategy ¶
func (x *ApplyEditResponse) GetStrategy() string
func (*ApplyEditResponse) GetSuccess ¶
func (x *ApplyEditResponse) GetSuccess() bool
func (*ApplyEditResponse) ProtoMessage ¶
func (*ApplyEditResponse) ProtoMessage()
func (*ApplyEditResponse) ProtoReflect ¶
func (x *ApplyEditResponse) ProtoReflect() protoreflect.Message
func (*ApplyEditResponse) Reset ¶
func (x *ApplyEditResponse) Reset()
func (*ApplyEditResponse) String ¶
func (x *ApplyEditResponse) String() string
type BuildRequest ¶
type BuildRequest struct {
// contains filtered or unexported fields
}
BuildRequest asks the agent to run the native build command.
func (*BuildRequest) Descriptor
deprecated
func (*BuildRequest) Descriptor() ([]byte, []int)
Deprecated: Use BuildRequest.ProtoReflect.Descriptor instead.
func (*BuildRequest) ProtoMessage ¶
func (*BuildRequest) ProtoMessage()
func (*BuildRequest) ProtoReflect ¶
func (x *BuildRequest) ProtoReflect() protoreflect.Message
func (*BuildRequest) Reset ¶
func (x *BuildRequest) Reset()
func (*BuildRequest) String ¶
func (x *BuildRequest) String() string
type BuildResponse ¶
type BuildResponse struct {
// success is true when the requested operation completed successfully.
Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
// output is raw command, build, lint, or test output preserved for diagnostics.
Output string `protobuf:"bytes,2,opt,name=output,proto3" json:"output,omitempty"`
// diagnostics are compiler, linter, or language-server findings.
Diagnostics []*Diagnostic `protobuf:"bytes,3,rep,name=diagnostics,proto3" json:"diagnostics,omitempty"`
// contains filtered or unexported fields
}
BuildResponse returns build output and diagnostics from the native toolchain.
func (*BuildResponse) Descriptor
deprecated
func (*BuildResponse) Descriptor() ([]byte, []int)
Deprecated: Use BuildResponse.ProtoReflect.Descriptor instead.
func (*BuildResponse) GetDiagnostics ¶
func (x *BuildResponse) GetDiagnostics() []*Diagnostic
func (*BuildResponse) GetOutput ¶
func (x *BuildResponse) GetOutput() string
func (*BuildResponse) GetSuccess ¶
func (x *BuildResponse) GetSuccess() bool
func (*BuildResponse) ProtoMessage ¶
func (*BuildResponse) ProtoMessage()
func (*BuildResponse) ProtoReflect ¶
func (x *BuildResponse) ProtoReflect() protoreflect.Message
func (*BuildResponse) Reset ¶
func (x *BuildResponse) Reset()
func (*BuildResponse) String ¶
func (x *BuildResponse) String() string
type CallEdge ¶
type CallEdge struct {
// caller_id identifies the calling symbol in the graph.
CallerId string `protobuf:"bytes,1,opt,name=caller_id,json=callerId,proto3" json:"caller_id,omitempty"`
// callee_id identifies the called symbol in the graph.
CalleeId string `protobuf:"bytes,2,opt,name=callee_id,json=calleeId,proto3" json:"callee_id,omitempty"`
// call_type describes whether the call is static, dynamic, interface, or inferred.
CallType string `protobuf:"bytes,3,opt,name=call_type,json=callType,proto3" json:"call_type,omitempty"`
// call_site is the source location where a call occurs.
CallSite *Location `protobuf:"bytes,4,opt,name=call_site,json=callSite,proto3" json:"call_site,omitempty"`
// contains filtered or unexported fields
}
CallEdge represents a function call discovered by call graph analysis.
func (*CallEdge) Descriptor
deprecated
func (*CallEdge) GetCallSite ¶
func (*CallEdge) GetCallType ¶
func (*CallEdge) GetCalleeId ¶
func (*CallEdge) GetCallerId ¶
func (*CallEdge) ProtoMessage ¶
func (*CallEdge) ProtoMessage()
func (*CallEdge) ProtoReflect ¶
func (x *CallEdge) ProtoReflect() protoreflect.Message
type CompletionItem ¶
type CompletionItem struct {
// label is the text displayed for a completion or option.
Label string `protobuf:"bytes,1,opt,name=label,proto3" json:"label,omitempty"`
// kind classifies the suggestion using LSP-style categories.
Kind CompletionKind `protobuf:"varint,2,opt,name=kind,proto3,enum=codefly.services.tooling.v0.CompletionKind" json:"kind,omitempty"`
// detail is a short description such as a type signature.
Detail string `protobuf:"bytes,3,opt,name=detail,proto3" json:"detail,omitempty"`
// documentation is the doc comment or hover text supplied by language tooling.
Documentation string `protobuf:"bytes,4,opt,name=documentation,proto3" json:"documentation,omitempty"`
// insert_text is the text inserted when a completion is accepted.
InsertText string `protobuf:"bytes,5,opt,name=insert_text,json=insertText,proto3" json:"insert_text,omitempty"`
// sort_text controls stable ordering of completion items.
SortText string `protobuf:"bytes,6,opt,name=sort_text,json=sortText,proto3" json:"sort_text,omitempty"`
// contains filtered or unexported fields
}
CompletionItem represents one language-server completion suggestion.
func (*CompletionItem) Descriptor
deprecated
func (*CompletionItem) Descriptor() ([]byte, []int)
Deprecated: Use CompletionItem.ProtoReflect.Descriptor instead.
func (*CompletionItem) GetDetail ¶
func (x *CompletionItem) GetDetail() string
func (*CompletionItem) GetDocumentation ¶
func (x *CompletionItem) GetDocumentation() string
func (*CompletionItem) GetInsertText ¶
func (x *CompletionItem) GetInsertText() string
func (*CompletionItem) GetKind ¶
func (x *CompletionItem) GetKind() CompletionKind
func (*CompletionItem) GetLabel ¶
func (x *CompletionItem) GetLabel() string
func (*CompletionItem) GetSortText ¶
func (x *CompletionItem) GetSortText() string
func (*CompletionItem) ProtoMessage ¶
func (*CompletionItem) ProtoMessage()
func (*CompletionItem) ProtoReflect ¶
func (x *CompletionItem) ProtoReflect() protoreflect.Message
func (*CompletionItem) Reset ¶
func (x *CompletionItem) Reset()
func (*CompletionItem) String ¶
func (x *CompletionItem) String() string
type CompletionKind ¶
type CompletionKind int32
CompletionKind enumerates supported completion kinds.
const ( // COMPLETION_KIND_UNKNOWN is the default value when completion kind is not specified. CompletionKind_COMPLETION_KIND_UNKNOWN CompletionKind = 0 // COMPLETION_KIND_TEXT represents a text completion item. CompletionKind_COMPLETION_KIND_TEXT CompletionKind = 1 // COMPLETION_KIND_METHOD represents a method completion item. CompletionKind_COMPLETION_KIND_METHOD CompletionKind = 2 // COMPLETION_KIND_FUNCTION represents a function completion item. CompletionKind_COMPLETION_KIND_FUNCTION CompletionKind = 3 // COMPLETION_KIND_CONSTRUCTOR represents a constructor completion item. CompletionKind_COMPLETION_KIND_CONSTRUCTOR CompletionKind = 4 // COMPLETION_KIND_FIELD represents a field completion item. CompletionKind_COMPLETION_KIND_FIELD CompletionKind = 5 // COMPLETION_KIND_VARIABLE represents a variable completion item. CompletionKind_COMPLETION_KIND_VARIABLE CompletionKind = 6 // COMPLETION_KIND_CLASS represents a class completion item. CompletionKind_COMPLETION_KIND_CLASS CompletionKind = 7 // COMPLETION_KIND_INTERFACE represents an interface completion item. CompletionKind_COMPLETION_KIND_INTERFACE CompletionKind = 8 // COMPLETION_KIND_MODULE represents a module completion item. CompletionKind_COMPLETION_KIND_MODULE CompletionKind = 9 // COMPLETION_KIND_PROPERTY represents a property completion item. CompletionKind_COMPLETION_KIND_PROPERTY CompletionKind = 10 // COMPLETION_KIND_ENUM represents an enum completion item. CompletionKind_COMPLETION_KIND_ENUM CompletionKind = 13 // COMPLETION_KIND_KEYWORD represents a keyword completion item. CompletionKind_COMPLETION_KIND_KEYWORD CompletionKind = 14 // COMPLETION_KIND_SNIPPET represents a snippet completion item. CompletionKind_COMPLETION_KIND_SNIPPET CompletionKind = 15 // COMPLETION_KIND_CONSTANT represents a constant completion item. CompletionKind_COMPLETION_KIND_CONSTANT CompletionKind = 21 // COMPLETION_KIND_STRUCT represents a struct completion item. CompletionKind_COMPLETION_KIND_STRUCT CompletionKind = 22 // COMPLETION_KIND_TYPE_PARAMETER represents a type parameter completion item. CompletionKind_COMPLETION_KIND_TYPE_PARAMETER CompletionKind = 25 )
func (CompletionKind) Descriptor ¶
func (CompletionKind) Descriptor() protoreflect.EnumDescriptor
func (CompletionKind) Enum ¶
func (x CompletionKind) Enum() *CompletionKind
func (CompletionKind) EnumDescriptor
deprecated
func (CompletionKind) EnumDescriptor() ([]byte, []int)
Deprecated: Use CompletionKind.Descriptor instead.
func (CompletionKind) Number ¶
func (x CompletionKind) Number() protoreflect.EnumNumber
func (CompletionKind) String ¶
func (x CompletionKind) String() string
func (CompletionKind) Type ¶
func (CompletionKind) Type() protoreflect.EnumType
type Dependency ¶
type Dependency struct {
// name is the package, module, or dependency identifier.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// version is the semantic or service-specific version for this resource.
Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
// direct is true when the dependency is declared directly rather than transitively inferred.
Direct bool `protobuf:"varint,3,opt,name=direct,proto3" json:"direct,omitempty"`
// contains filtered or unexported fields
}
Dependency represents a package or module dependency.
func (*Dependency) Descriptor
deprecated
func (*Dependency) Descriptor() ([]byte, []int)
Deprecated: Use Dependency.ProtoReflect.Descriptor instead.
func (*Dependency) GetDirect ¶
func (x *Dependency) GetDirect() bool
func (*Dependency) GetName ¶
func (x *Dependency) GetName() string
func (*Dependency) GetVersion ¶
func (x *Dependency) GetVersion() string
func (*Dependency) ProtoMessage ¶
func (*Dependency) ProtoMessage()
func (*Dependency) ProtoReflect ¶
func (x *Dependency) ProtoReflect() protoreflect.Message
func (*Dependency) Reset ¶
func (x *Dependency) Reset()
func (*Dependency) String ¶
func (x *Dependency) String() string
type Diagnostic ¶
type Diagnostic struct {
// file is a workspace- or service-relative source file path.
File string `protobuf:"bytes,1,opt,name=file,proto3" json:"file,omitempty"`
// line is the 1-based source line number.
Line int32 `protobuf:"varint,2,opt,name=line,proto3" json:"line,omitempty"`
// column is the 1-based source column number when known.
Column int32 `protobuf:"varint,3,opt,name=column,proto3" json:"column,omitempty"`
// end_line is the 1-based ending source line for a range.
EndLine int32 `protobuf:"varint,4,opt,name=end_line,json=endLine,proto3" json:"end_line,omitempty"`
// end_column is the 1-based ending source column for a range.
EndColumn int32 `protobuf:"varint,5,opt,name=end_column,json=endColumn,proto3" json:"end_column,omitempty"`
// message is the diagnostic text returned by the producing tool.
Message string `protobuf:"bytes,6,opt,name=message,proto3" json:"message,omitempty"`
// severity is the diagnostic level such as error, warning, information, or hint.
Severity DiagnosticSeverity `protobuf:"varint,7,opt,name=severity,proto3,enum=codefly.services.tooling.v0.DiagnosticSeverity" json:"severity,omitempty"`
// source identifies the tool that produced the diagnostic or event.
Source string `protobuf:"bytes,8,opt,name=source,proto3" json:"source,omitempty"`
// code is the diagnostic or rule identifier from the producing tool.
Code string `protobuf:"bytes,9,opt,name=code,proto3" json:"code,omitempty"`
// contains filtered or unexported fields
}
Diagnostic represents a compiler, linter, or language-server finding.
func (*Diagnostic) Descriptor
deprecated
func (*Diagnostic) Descriptor() ([]byte, []int)
Deprecated: Use Diagnostic.ProtoReflect.Descriptor instead.
func (*Diagnostic) GetCode ¶
func (x *Diagnostic) GetCode() string
func (*Diagnostic) GetColumn ¶
func (x *Diagnostic) GetColumn() int32
func (*Diagnostic) GetEndColumn ¶
func (x *Diagnostic) GetEndColumn() int32
func (*Diagnostic) GetEndLine ¶
func (x *Diagnostic) GetEndLine() int32
func (*Diagnostic) GetFile ¶
func (x *Diagnostic) GetFile() string
func (*Diagnostic) GetLine ¶
func (x *Diagnostic) GetLine() int32
func (*Diagnostic) GetMessage ¶
func (x *Diagnostic) GetMessage() string
func (*Diagnostic) GetSeverity ¶
func (x *Diagnostic) GetSeverity() DiagnosticSeverity
func (*Diagnostic) GetSource ¶
func (x *Diagnostic) GetSource() string
func (*Diagnostic) ProtoMessage ¶
func (*Diagnostic) ProtoMessage()
func (*Diagnostic) ProtoReflect ¶
func (x *Diagnostic) ProtoReflect() protoreflect.Message
func (*Diagnostic) Reset ¶
func (x *Diagnostic) Reset()
func (*Diagnostic) String ¶
func (x *Diagnostic) String() string
type DiagnosticSeverity ¶
type DiagnosticSeverity int32
DiagnosticSeverity enumerates diagnostic severity levels.
const ( // DIAGNOSTIC_SEVERITY_UNKNOWN is the default value when diagnostic severity is not specified. DiagnosticSeverity_DIAGNOSTIC_SEVERITY_UNKNOWN DiagnosticSeverity = 0 // DIAGNOSTIC_SEVERITY_ERROR reports an error diagnostic. DiagnosticSeverity_DIAGNOSTIC_SEVERITY_ERROR DiagnosticSeverity = 1 // DIAGNOSTIC_SEVERITY_WARNING reports a warning diagnostic. DiagnosticSeverity_DIAGNOSTIC_SEVERITY_WARNING DiagnosticSeverity = 2 // DIAGNOSTIC_SEVERITY_INFORMATION reports an informational diagnostic. DiagnosticSeverity_DIAGNOSTIC_SEVERITY_INFORMATION DiagnosticSeverity = 3 // DIAGNOSTIC_SEVERITY_HINT reports a hint diagnostic. DiagnosticSeverity_DIAGNOSTIC_SEVERITY_HINT DiagnosticSeverity = 4 )
func (DiagnosticSeverity) Descriptor ¶
func (DiagnosticSeverity) Descriptor() protoreflect.EnumDescriptor
func (DiagnosticSeverity) Enum ¶
func (x DiagnosticSeverity) Enum() *DiagnosticSeverity
func (DiagnosticSeverity) EnumDescriptor
deprecated
func (DiagnosticSeverity) EnumDescriptor() ([]byte, []int)
Deprecated: Use DiagnosticSeverity.Descriptor instead.
func (DiagnosticSeverity) Number ¶
func (x DiagnosticSeverity) Number() protoreflect.EnumNumber
func (DiagnosticSeverity) String ¶
func (x DiagnosticSeverity) String() string
func (DiagnosticSeverity) Type ¶
func (DiagnosticSeverity) Type() protoreflect.EnumType
type FindReferencesRequest ¶
type FindReferencesRequest struct {
// file is a workspace- or service-relative source file path.
File string `protobuf:"bytes,1,opt,name=file,proto3" json:"file,omitempty"`
// line is the 1-based source line number.
Line int32 `protobuf:"varint,2,opt,name=line,proto3" json:"line,omitempty"`
// column is the 1-based source column number when known.
Column int32 `protobuf:"varint,3,opt,name=column,proto3" json:"column,omitempty"`
// contains filtered or unexported fields
}
FindReferencesRequest identifies a source position whose usages should be resolved.
func (*FindReferencesRequest) Descriptor
deprecated
func (*FindReferencesRequest) Descriptor() ([]byte, []int)
Deprecated: Use FindReferencesRequest.ProtoReflect.Descriptor instead.
func (*FindReferencesRequest) GetColumn ¶
func (x *FindReferencesRequest) GetColumn() int32
func (*FindReferencesRequest) GetFile ¶
func (x *FindReferencesRequest) GetFile() string
func (*FindReferencesRequest) GetLine ¶
func (x *FindReferencesRequest) GetLine() int32
func (*FindReferencesRequest) ProtoMessage ¶
func (*FindReferencesRequest) ProtoMessage()
func (*FindReferencesRequest) ProtoReflect ¶
func (x *FindReferencesRequest) ProtoReflect() protoreflect.Message
func (*FindReferencesRequest) Reset ¶
func (x *FindReferencesRequest) Reset()
func (*FindReferencesRequest) String ¶
func (x *FindReferencesRequest) String() string
type FindReferencesResponse ¶
type FindReferencesResponse struct {
// locations are reference locations returned by the language server.
Locations []*Location `protobuf:"bytes,1,rep,name=locations,proto3" json:"locations,omitempty"`
// contains filtered or unexported fields
}
FindReferencesResponse returns usage locations for the selected symbol.
func (*FindReferencesResponse) Descriptor
deprecated
func (*FindReferencesResponse) Descriptor() ([]byte, []int)
Deprecated: Use FindReferencesResponse.ProtoReflect.Descriptor instead.
func (*FindReferencesResponse) GetLocations ¶
func (x *FindReferencesResponse) GetLocations() []*Location
func (*FindReferencesResponse) ProtoMessage ¶
func (*FindReferencesResponse) ProtoMessage()
func (*FindReferencesResponse) ProtoReflect ¶
func (x *FindReferencesResponse) ProtoReflect() protoreflect.Message
func (*FindReferencesResponse) Reset ¶
func (x *FindReferencesResponse) Reset()
func (*FindReferencesResponse) String ¶
func (x *FindReferencesResponse) String() string
type FixRequest ¶
type FixRequest struct {
// file is a workspace- or service-relative source file path.
File string `protobuf:"bytes,1,opt,name=file,proto3" json:"file,omitempty"`
// contains filtered or unexported fields
}
FixRequest asks the agent to format or auto-fix one file.
func (*FixRequest) Descriptor
deprecated
func (*FixRequest) Descriptor() ([]byte, []int)
Deprecated: Use FixRequest.ProtoReflect.Descriptor instead.
func (*FixRequest) GetFile ¶
func (x *FixRequest) GetFile() string
func (*FixRequest) ProtoMessage ¶
func (*FixRequest) ProtoMessage()
func (*FixRequest) ProtoReflect ¶
func (x *FixRequest) ProtoReflect() protoreflect.Message
func (*FixRequest) Reset ¶
func (x *FixRequest) Reset()
func (*FixRequest) String ¶
func (x *FixRequest) String() string
type FixResponse ¶
type FixResponse struct {
// success is true when the requested operation completed successfully.
Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
// content is the file content after formatting; it may be empty when unchanged.
Content string `protobuf:"bytes,2,opt,name=content,proto3" json:"content,omitempty"`
// error explains why the operation failed; empty means success at this layer.
Error string `protobuf:"bytes,3,opt,name=error,proto3" json:"error,omitempty"`
// actions names formatters or fixers executed by the agent.
Actions []string `protobuf:"bytes,4,rep,name=actions,proto3" json:"actions,omitempty"`
// contains filtered or unexported fields
}
FixResponse returns the fixed content and the formatter actions that ran.
func (*FixResponse) Descriptor
deprecated
func (*FixResponse) Descriptor() ([]byte, []int)
Deprecated: Use FixResponse.ProtoReflect.Descriptor instead.
func (*FixResponse) GetActions ¶
func (x *FixResponse) GetActions() []string
func (*FixResponse) GetContent ¶
func (x *FixResponse) GetContent() string
func (*FixResponse) GetError ¶
func (x *FixResponse) GetError() string
func (*FixResponse) GetSuccess ¶
func (x *FixResponse) GetSuccess() bool
func (*FixResponse) ProtoMessage ¶
func (*FixResponse) ProtoMessage()
func (*FixResponse) ProtoReflect ¶
func (x *FixResponse) ProtoReflect() protoreflect.Message
func (*FixResponse) Reset ¶
func (x *FixResponse) Reset()
func (*FixResponse) String ¶
func (x *FixResponse) String() string
type GetCallGraphRequest ¶
type GetCallGraphRequest struct {
// algorithm selects the analysis algorithm requested by the caller.
Algorithm string `protobuf:"bytes,1,opt,name=algorithm,proto3" json:"algorithm,omitempty"`
// contains filtered or unexported fields
}
GetCallGraphRequest identifies the call graph data to retrieve.
func (*GetCallGraphRequest) Descriptor
deprecated
func (*GetCallGraphRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetCallGraphRequest.ProtoReflect.Descriptor instead.
func (*GetCallGraphRequest) GetAlgorithm ¶
func (x *GetCallGraphRequest) GetAlgorithm() string
func (*GetCallGraphRequest) ProtoMessage ¶
func (*GetCallGraphRequest) ProtoMessage()
func (*GetCallGraphRequest) ProtoReflect ¶
func (x *GetCallGraphRequest) ProtoReflect() protoreflect.Message
func (*GetCallGraphRequest) Reset ¶
func (x *GetCallGraphRequest) Reset()
func (*GetCallGraphRequest) String ¶
func (x *GetCallGraphRequest) String() string
type GetCallGraphResponse ¶
type GetCallGraphResponse struct {
// calls are function-to-function call edges discovered by analysis.
Calls []*CallEdge `protobuf:"bytes,1,rep,name=calls,proto3" json:"calls,omitempty"`
// implements are type-to-interface relationships discovered by analysis.
Implements []*ImplementsEdge `protobuf:"bytes,2,rep,name=implements,proto3" json:"implements,omitempty"`
// functions_analyzed is the number of functions included in analysis.
FunctionsAnalyzed int32 `protobuf:"varint,3,opt,name=functions_analyzed,json=functionsAnalyzed,proto3" json:"functions_analyzed,omitempty"`
// algorithm_used reports the actual analysis algorithm that ran.
AlgorithmUsed string `protobuf:"bytes,4,opt,name=algorithm_used,json=algorithmUsed,proto3" json:"algorithm_used,omitempty"`
// error explains why the operation failed; empty means success at this layer.
Error string `protobuf:"bytes,5,opt,name=error,proto3" json:"error,omitempty"`
// contains filtered or unexported fields
}
GetCallGraphResponse returns call edges and interface implementation edges.
func (*GetCallGraphResponse) Descriptor
deprecated
func (*GetCallGraphResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetCallGraphResponse.ProtoReflect.Descriptor instead.
func (*GetCallGraphResponse) GetAlgorithmUsed ¶
func (x *GetCallGraphResponse) GetAlgorithmUsed() string
func (*GetCallGraphResponse) GetCalls ¶
func (x *GetCallGraphResponse) GetCalls() []*CallEdge
func (*GetCallGraphResponse) GetError ¶
func (x *GetCallGraphResponse) GetError() string
func (*GetCallGraphResponse) GetFunctionsAnalyzed ¶
func (x *GetCallGraphResponse) GetFunctionsAnalyzed() int32
func (*GetCallGraphResponse) GetImplements ¶
func (x *GetCallGraphResponse) GetImplements() []*ImplementsEdge
func (*GetCallGraphResponse) ProtoMessage ¶
func (*GetCallGraphResponse) ProtoMessage()
func (*GetCallGraphResponse) ProtoReflect ¶
func (x *GetCallGraphResponse) ProtoReflect() protoreflect.Message
func (*GetCallGraphResponse) Reset ¶
func (x *GetCallGraphResponse) Reset()
func (*GetCallGraphResponse) String ¶
func (x *GetCallGraphResponse) String() string
type GetCompletionsRequest ¶
type GetCompletionsRequest struct {
// file is a workspace- or service-relative source file path.
File string `protobuf:"bytes,1,opt,name=file,proto3" json:"file,omitempty"`
// line is the 1-based source line number.
Line int32 `protobuf:"varint,2,opt,name=line,proto3" json:"line,omitempty"`
// column is the 1-based source column number when known.
Column int32 `protobuf:"varint,3,opt,name=column,proto3" json:"column,omitempty"`
// contains filtered or unexported fields
}
GetCompletionsRequest identifies the completions data to retrieve.
func (*GetCompletionsRequest) Descriptor
deprecated
func (*GetCompletionsRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetCompletionsRequest.ProtoReflect.Descriptor instead.
func (*GetCompletionsRequest) GetColumn ¶
func (x *GetCompletionsRequest) GetColumn() int32
func (*GetCompletionsRequest) GetFile ¶
func (x *GetCompletionsRequest) GetFile() string
func (*GetCompletionsRequest) GetLine ¶
func (x *GetCompletionsRequest) GetLine() int32
func (*GetCompletionsRequest) ProtoMessage ¶
func (*GetCompletionsRequest) ProtoMessage()
func (*GetCompletionsRequest) ProtoReflect ¶
func (x *GetCompletionsRequest) ProtoReflect() protoreflect.Message
func (*GetCompletionsRequest) Reset ¶
func (x *GetCompletionsRequest) Reset()
func (*GetCompletionsRequest) String ¶
func (x *GetCompletionsRequest) String() string
type GetCompletionsResponse ¶
type GetCompletionsResponse struct {
// items are completion suggestions returned by the language server.
Items []*CompletionItem `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
// is_incomplete is true when more completion results may be available.
IsIncomplete bool `protobuf:"varint,2,opt,name=is_incomplete,json=isIncomplete,proto3" json:"is_incomplete,omitempty"`
// contains filtered or unexported fields
}
GetCompletionsResponse returns suggestions for the requested source position.
func (*GetCompletionsResponse) Descriptor
deprecated
func (*GetCompletionsResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetCompletionsResponse.ProtoReflect.Descriptor instead.
func (*GetCompletionsResponse) GetIsIncomplete ¶
func (x *GetCompletionsResponse) GetIsIncomplete() bool
func (*GetCompletionsResponse) GetItems ¶
func (x *GetCompletionsResponse) GetItems() []*CompletionItem
func (*GetCompletionsResponse) ProtoMessage ¶
func (*GetCompletionsResponse) ProtoMessage()
func (*GetCompletionsResponse) ProtoReflect ¶
func (x *GetCompletionsResponse) ProtoReflect() protoreflect.Message
func (*GetCompletionsResponse) Reset ¶
func (x *GetCompletionsResponse) Reset()
func (*GetCompletionsResponse) String ¶
func (x *GetCompletionsResponse) String() string
type GetDiagnosticsRequest ¶
type GetDiagnosticsRequest struct {
// file is a workspace- or service-relative source file path.
File string `protobuf:"bytes,1,opt,name=file,proto3" json:"file,omitempty"`
// contains filtered or unexported fields
}
GetDiagnosticsRequest identifies the diagnostics data to retrieve.
func (*GetDiagnosticsRequest) Descriptor
deprecated
func (*GetDiagnosticsRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetDiagnosticsRequest.ProtoReflect.Descriptor instead.
func (*GetDiagnosticsRequest) GetFile ¶
func (x *GetDiagnosticsRequest) GetFile() string
func (*GetDiagnosticsRequest) ProtoMessage ¶
func (*GetDiagnosticsRequest) ProtoMessage()
func (*GetDiagnosticsRequest) ProtoReflect ¶
func (x *GetDiagnosticsRequest) ProtoReflect() protoreflect.Message
func (*GetDiagnosticsRequest) Reset ¶
func (x *GetDiagnosticsRequest) Reset()
func (*GetDiagnosticsRequest) String ¶
func (x *GetDiagnosticsRequest) String() string
type GetDiagnosticsResponse ¶
type GetDiagnosticsResponse struct {
// diagnostics are compiler, linter, or language-server findings.
Diagnostics []*Diagnostic `protobuf:"bytes,1,rep,name=diagnostics,proto3" json:"diagnostics,omitempty"`
// contains filtered or unexported fields
}
GetDiagnosticsResponse returns diagnostics from the active language tooling.
func (*GetDiagnosticsResponse) Descriptor
deprecated
func (*GetDiagnosticsResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetDiagnosticsResponse.ProtoReflect.Descriptor instead.
func (*GetDiagnosticsResponse) GetDiagnostics ¶
func (x *GetDiagnosticsResponse) GetDiagnostics() []*Diagnostic
func (*GetDiagnosticsResponse) ProtoMessage ¶
func (*GetDiagnosticsResponse) ProtoMessage()
func (*GetDiagnosticsResponse) ProtoReflect ¶
func (x *GetDiagnosticsResponse) ProtoReflect() protoreflect.Message
func (*GetDiagnosticsResponse) Reset ¶
func (x *GetDiagnosticsResponse) Reset()
func (*GetDiagnosticsResponse) String ¶
func (x *GetDiagnosticsResponse) String() string
type GetHoverInfoRequest ¶
type GetHoverInfoRequest struct {
// file is a workspace- or service-relative source file path.
File string `protobuf:"bytes,1,opt,name=file,proto3" json:"file,omitempty"`
// line is the 1-based source line number.
Line int32 `protobuf:"varint,2,opt,name=line,proto3" json:"line,omitempty"`
// column is the 1-based source column number when known.
Column int32 `protobuf:"varint,3,opt,name=column,proto3" json:"column,omitempty"`
// contains filtered or unexported fields
}
GetHoverInfoRequest identifies the hover info data to retrieve.
func (*GetHoverInfoRequest) Descriptor
deprecated
func (*GetHoverInfoRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetHoverInfoRequest.ProtoReflect.Descriptor instead.
func (*GetHoverInfoRequest) GetColumn ¶
func (x *GetHoverInfoRequest) GetColumn() int32
func (*GetHoverInfoRequest) GetFile ¶
func (x *GetHoverInfoRequest) GetFile() string
func (*GetHoverInfoRequest) GetLine ¶
func (x *GetHoverInfoRequest) GetLine() int32
func (*GetHoverInfoRequest) ProtoMessage ¶
func (*GetHoverInfoRequest) ProtoMessage()
func (*GetHoverInfoRequest) ProtoReflect ¶
func (x *GetHoverInfoRequest) ProtoReflect() protoreflect.Message
func (*GetHoverInfoRequest) Reset ¶
func (x *GetHoverInfoRequest) Reset()
func (*GetHoverInfoRequest) String ¶
func (x *GetHoverInfoRequest) String() string
type GetHoverInfoResponse ¶
type GetHoverInfoResponse struct {
// content is the hover content, often markdown from the language server.
Content string `protobuf:"bytes,1,opt,name=content,proto3" json:"content,omitempty"`
// language is the implementation language reported by tooling or project metadata.
Language string `protobuf:"bytes,2,opt,name=language,proto3" json:"language,omitempty"`
// range is the source range covered by hover or diagnostic information.
Range *Location `protobuf:"bytes,3,opt,name=range,proto3" json:"range,omitempty"`
// contains filtered or unexported fields
}
GetHoverInfoResponse returns hover text and the source range it describes.
func (*GetHoverInfoResponse) Descriptor
deprecated
func (*GetHoverInfoResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetHoverInfoResponse.ProtoReflect.Descriptor instead.
func (*GetHoverInfoResponse) GetContent ¶
func (x *GetHoverInfoResponse) GetContent() string
func (*GetHoverInfoResponse) GetLanguage ¶
func (x *GetHoverInfoResponse) GetLanguage() string
func (*GetHoverInfoResponse) GetRange ¶
func (x *GetHoverInfoResponse) GetRange() *Location
func (*GetHoverInfoResponse) ProtoMessage ¶
func (*GetHoverInfoResponse) ProtoMessage()
func (*GetHoverInfoResponse) ProtoReflect ¶
func (x *GetHoverInfoResponse) ProtoReflect() protoreflect.Message
func (*GetHoverInfoResponse) Reset ¶
func (x *GetHoverInfoResponse) Reset()
func (*GetHoverInfoResponse) String ¶
func (x *GetHoverInfoResponse) String() string
type GetProjectInfoRequest ¶
type GetProjectInfoRequest struct {
// contains filtered or unexported fields
}
GetProjectInfoRequest identifies the project info data to retrieve.
func (*GetProjectInfoRequest) Descriptor
deprecated
func (*GetProjectInfoRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetProjectInfoRequest.ProtoReflect.Descriptor instead.
func (*GetProjectInfoRequest) ProtoMessage ¶
func (*GetProjectInfoRequest) ProtoMessage()
func (*GetProjectInfoRequest) ProtoReflect ¶
func (x *GetProjectInfoRequest) ProtoReflect() protoreflect.Message
func (*GetProjectInfoRequest) Reset ¶
func (x *GetProjectInfoRequest) Reset()
func (*GetProjectInfoRequest) String ¶
func (x *GetProjectInfoRequest) String() string
type GetProjectInfoResponse ¶
type GetProjectInfoResponse struct {
// module is the Codefly module name that groups services.
Module string `protobuf:"bytes,1,opt,name=module,proto3" json:"module,omitempty"`
// language is the implementation language reported by tooling or project metadata.
Language string `protobuf:"bytes,2,opt,name=language,proto3" json:"language,omitempty"`
// language_version is the detected toolchain/runtime version.
LanguageVersion string `protobuf:"bytes,3,opt,name=language_version,json=languageVersion,proto3" json:"language_version,omitempty"`
// packages are language packages or modules discovered in the project.
Packages []*PackageInfo `protobuf:"bytes,4,rep,name=packages,proto3" json:"packages,omitempty"`
// dependencies are packages or services required by this resource.
Dependencies []*Dependency `protobuf:"bytes,5,rep,name=dependencies,proto3" json:"dependencies,omitempty"`
// file_hashes maps source paths to hashes for change detection.
FileHashes map[string]string `` /* 165-byte string literal not displayed */
// error explains why the operation failed; empty means success at this layer.
Error string `protobuf:"bytes,7,opt,name=error,proto3" json:"error,omitempty"`
// contains filtered or unexported fields
}
GetProjectInfoResponse returns language metadata useful for ingestion and planning.
func (*GetProjectInfoResponse) Descriptor
deprecated
func (*GetProjectInfoResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetProjectInfoResponse.ProtoReflect.Descriptor instead.
func (*GetProjectInfoResponse) GetDependencies ¶
func (x *GetProjectInfoResponse) GetDependencies() []*Dependency
func (*GetProjectInfoResponse) GetError ¶
func (x *GetProjectInfoResponse) GetError() string
func (*GetProjectInfoResponse) GetFileHashes ¶
func (x *GetProjectInfoResponse) GetFileHashes() map[string]string
func (*GetProjectInfoResponse) GetLanguage ¶
func (x *GetProjectInfoResponse) GetLanguage() string
func (*GetProjectInfoResponse) GetLanguageVersion ¶
func (x *GetProjectInfoResponse) GetLanguageVersion() string
func (*GetProjectInfoResponse) GetModule ¶
func (x *GetProjectInfoResponse) GetModule() string
func (*GetProjectInfoResponse) GetPackages ¶
func (x *GetProjectInfoResponse) GetPackages() []*PackageInfo
func (*GetProjectInfoResponse) ProtoMessage ¶
func (*GetProjectInfoResponse) ProtoMessage()
func (*GetProjectInfoResponse) ProtoReflect ¶
func (x *GetProjectInfoResponse) ProtoReflect() protoreflect.Message
func (*GetProjectInfoResponse) Reset ¶
func (x *GetProjectInfoResponse) Reset()
func (*GetProjectInfoResponse) String ¶
func (x *GetProjectInfoResponse) String() string
type GoToDefinitionRequest ¶
type GoToDefinitionRequest struct {
// file is a workspace- or service-relative source file path.
File string `protobuf:"bytes,1,opt,name=file,proto3" json:"file,omitempty"`
// line is the 1-based source line number.
Line int32 `protobuf:"varint,2,opt,name=line,proto3" json:"line,omitempty"`
// column is the 1-based source column number when known.
Column int32 `protobuf:"varint,3,opt,name=column,proto3" json:"column,omitempty"`
// contains filtered or unexported fields
}
GoToDefinitionRequest identifies a source position whose declaration should be resolved.
func (*GoToDefinitionRequest) Descriptor
deprecated
func (*GoToDefinitionRequest) Descriptor() ([]byte, []int)
Deprecated: Use GoToDefinitionRequest.ProtoReflect.Descriptor instead.
func (*GoToDefinitionRequest) GetColumn ¶
func (x *GoToDefinitionRequest) GetColumn() int32
func (*GoToDefinitionRequest) GetFile ¶
func (x *GoToDefinitionRequest) GetFile() string
func (*GoToDefinitionRequest) GetLine ¶
func (x *GoToDefinitionRequest) GetLine() int32
func (*GoToDefinitionRequest) ProtoMessage ¶
func (*GoToDefinitionRequest) ProtoMessage()
func (*GoToDefinitionRequest) ProtoReflect ¶
func (x *GoToDefinitionRequest) ProtoReflect() protoreflect.Message
func (*GoToDefinitionRequest) Reset ¶
func (x *GoToDefinitionRequest) Reset()
func (*GoToDefinitionRequest) String ¶
func (x *GoToDefinitionRequest) String() string
type GoToDefinitionResponse ¶
type GoToDefinitionResponse struct {
// locations are declaration locations returned by the language server.
Locations []*Location `protobuf:"bytes,1,rep,name=locations,proto3" json:"locations,omitempty"`
// contains filtered or unexported fields
}
GoToDefinitionResponse returns declaration locations for the selected symbol.
func (*GoToDefinitionResponse) Descriptor
deprecated
func (*GoToDefinitionResponse) Descriptor() ([]byte, []int)
Deprecated: Use GoToDefinitionResponse.ProtoReflect.Descriptor instead.
func (*GoToDefinitionResponse) GetLocations ¶
func (x *GoToDefinitionResponse) GetLocations() []*Location
func (*GoToDefinitionResponse) ProtoMessage ¶
func (*GoToDefinitionResponse) ProtoMessage()
func (*GoToDefinitionResponse) ProtoReflect ¶
func (x *GoToDefinitionResponse) ProtoReflect() protoreflect.Message
func (*GoToDefinitionResponse) Reset ¶
func (x *GoToDefinitionResponse) Reset()
func (*GoToDefinitionResponse) String ¶
func (x *GoToDefinitionResponse) String() string
type ImplementsEdge ¶
type ImplementsEdge struct {
// type_id identifies the concrete type in an implementation relationship.
TypeId string `protobuf:"bytes,1,opt,name=type_id,json=typeId,proto3" json:"type_id,omitempty"`
// interface_id identifies the interface type in an implementation relationship.
InterfaceId string `protobuf:"bytes,2,opt,name=interface_id,json=interfaceId,proto3" json:"interface_id,omitempty"`
// contains filtered or unexported fields
}
ImplementsEdge records that a concrete type implements an interface.
func (*ImplementsEdge) Descriptor
deprecated
func (*ImplementsEdge) Descriptor() ([]byte, []int)
Deprecated: Use ImplementsEdge.ProtoReflect.Descriptor instead.
func (*ImplementsEdge) GetInterfaceId ¶
func (x *ImplementsEdge) GetInterfaceId() string
func (*ImplementsEdge) GetTypeId ¶
func (x *ImplementsEdge) GetTypeId() string
func (*ImplementsEdge) ProtoMessage ¶
func (*ImplementsEdge) ProtoMessage()
func (*ImplementsEdge) ProtoReflect ¶
func (x *ImplementsEdge) ProtoReflect() protoreflect.Message
func (*ImplementsEdge) Reset ¶
func (x *ImplementsEdge) Reset()
func (*ImplementsEdge) String ¶
func (x *ImplementsEdge) String() string
type LintRequest ¶
type LintRequest struct {
// file is a workspace- or service-relative source file path.
File string `protobuf:"bytes,1,opt,name=file,proto3" json:"file,omitempty"` // optional: restrict to file
// contains filtered or unexported fields
}
LintRequest asks the agent to run native linting, optionally scoped to one file.
func (*LintRequest) Descriptor
deprecated
func (*LintRequest) Descriptor() ([]byte, []int)
Deprecated: Use LintRequest.ProtoReflect.Descriptor instead.
func (*LintRequest) GetFile ¶
func (x *LintRequest) GetFile() string
func (*LintRequest) ProtoMessage ¶
func (*LintRequest) ProtoMessage()
func (*LintRequest) ProtoReflect ¶
func (x *LintRequest) ProtoReflect() protoreflect.Message
func (*LintRequest) Reset ¶
func (x *LintRequest) Reset()
func (*LintRequest) String ¶
func (x *LintRequest) String() string
type LintResponse ¶
type LintResponse struct {
// success is true when the requested operation completed successfully.
Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
// output is raw command, build, lint, or test output preserved for diagnostics.
Output string `protobuf:"bytes,2,opt,name=output,proto3" json:"output,omitempty"`
// diagnostics are compiler, linter, or language-server findings.
Diagnostics []*Diagnostic `protobuf:"bytes,3,rep,name=diagnostics,proto3" json:"diagnostics,omitempty"`
// contains filtered or unexported fields
}
LintResponse returns linter output and structured diagnostics.
func (*LintResponse) Descriptor
deprecated
func (*LintResponse) Descriptor() ([]byte, []int)
Deprecated: Use LintResponse.ProtoReflect.Descriptor instead.
func (*LintResponse) GetDiagnostics ¶
func (x *LintResponse) GetDiagnostics() []*Diagnostic
func (*LintResponse) GetOutput ¶
func (x *LintResponse) GetOutput() string
func (*LintResponse) GetSuccess ¶
func (x *LintResponse) GetSuccess() bool
func (*LintResponse) ProtoMessage ¶
func (*LintResponse) ProtoMessage()
func (*LintResponse) ProtoReflect ¶
func (x *LintResponse) ProtoReflect() protoreflect.Message
func (*LintResponse) Reset ¶
func (x *LintResponse) Reset()
func (*LintResponse) String ¶
func (x *LintResponse) String() string
type ListDependenciesRequest ¶
type ListDependenciesRequest struct {
// contains filtered or unexported fields
}
ListDependenciesRequest carries optional filters for listing dependencies.
func (*ListDependenciesRequest) Descriptor
deprecated
func (*ListDependenciesRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListDependenciesRequest.ProtoReflect.Descriptor instead.
func (*ListDependenciesRequest) ProtoMessage ¶
func (*ListDependenciesRequest) ProtoMessage()
func (*ListDependenciesRequest) ProtoReflect ¶
func (x *ListDependenciesRequest) ProtoReflect() protoreflect.Message
func (*ListDependenciesRequest) Reset ¶
func (x *ListDependenciesRequest) Reset()
func (*ListDependenciesRequest) String ¶
func (x *ListDependenciesRequest) String() string
type ListDependenciesResponse ¶
type ListDependenciesResponse struct {
// dependencies are packages or services required by this resource.
Dependencies []*Dependency `protobuf:"bytes,1,rep,name=dependencies,proto3" json:"dependencies,omitempty"`
// error explains why the operation failed; empty means success at this layer.
Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"`
// contains filtered or unexported fields
}
ListDependenciesResponse returns dependencies discovered by the native package manager.
func (*ListDependenciesResponse) Descriptor
deprecated
func (*ListDependenciesResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListDependenciesResponse.ProtoReflect.Descriptor instead.
func (*ListDependenciesResponse) GetDependencies ¶
func (x *ListDependenciesResponse) GetDependencies() []*Dependency
func (*ListDependenciesResponse) GetError ¶
func (x *ListDependenciesResponse) GetError() string
func (*ListDependenciesResponse) ProtoMessage ¶
func (*ListDependenciesResponse) ProtoMessage()
func (*ListDependenciesResponse) ProtoReflect ¶
func (x *ListDependenciesResponse) ProtoReflect() protoreflect.Message
func (*ListDependenciesResponse) Reset ¶
func (x *ListDependenciesResponse) Reset()
func (*ListDependenciesResponse) String ¶
func (x *ListDependenciesResponse) String() string
type ListSymbolsRequest ¶
type ListSymbolsRequest struct {
// file is a workspace- or service-relative source file path.
File string `protobuf:"bytes,1,opt,name=file,proto3" json:"file,omitempty"`
// contains filtered or unexported fields
}
ListSymbolsRequest carries optional filters for listing symbols.
func (*ListSymbolsRequest) Descriptor
deprecated
func (*ListSymbolsRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListSymbolsRequest.ProtoReflect.Descriptor instead.
func (*ListSymbolsRequest) GetFile ¶
func (x *ListSymbolsRequest) GetFile() string
func (*ListSymbolsRequest) ProtoMessage ¶
func (*ListSymbolsRequest) ProtoMessage()
func (*ListSymbolsRequest) ProtoReflect ¶
func (x *ListSymbolsRequest) ProtoReflect() protoreflect.Message
func (*ListSymbolsRequest) Reset ¶
func (x *ListSymbolsRequest) Reset()
func (*ListSymbolsRequest) String ¶
func (x *ListSymbolsRequest) String() string
type ListSymbolsResponse ¶
type ListSymbolsResponse struct {
// symbols are code entities returned by language analysis.
Symbols []*Symbol `protobuf:"bytes,1,rep,name=symbols,proto3" json:"symbols,omitempty"`
// contains filtered or unexported fields
}
ListSymbolsResponse returns symbols discovered for the requested scope.
func (*ListSymbolsResponse) Descriptor
deprecated
func (*ListSymbolsResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListSymbolsResponse.ProtoReflect.Descriptor instead.
func (*ListSymbolsResponse) GetSymbols ¶
func (x *ListSymbolsResponse) GetSymbols() []*Symbol
func (*ListSymbolsResponse) ProtoMessage ¶
func (*ListSymbolsResponse) ProtoMessage()
func (*ListSymbolsResponse) ProtoReflect ¶
func (x *ListSymbolsResponse) ProtoReflect() protoreflect.Message
func (*ListSymbolsResponse) Reset ¶
func (x *ListSymbolsResponse) Reset()
func (*ListSymbolsResponse) String ¶
func (x *ListSymbolsResponse) String() string
type Location ¶
type Location struct {
// file is a workspace- or service-relative source file path.
File string `protobuf:"bytes,1,opt,name=file,proto3" json:"file,omitempty"`
// line is the 1-based source line number.
Line int32 `protobuf:"varint,2,opt,name=line,proto3" json:"line,omitempty"`
// column is the 1-based source column number when known.
Column int32 `protobuf:"varint,3,opt,name=column,proto3" json:"column,omitempty"`
// end_line is the 1-based ending source line for a range.
EndLine int32 `protobuf:"varint,4,opt,name=end_line,json=endLine,proto3" json:"end_line,omitempty"`
// end_column is the 1-based ending source column for a range.
EndColumn int32 `protobuf:"varint,5,opt,name=end_column,json=endColumn,proto3" json:"end_column,omitempty"`
// contains filtered or unexported fields
}
Location identifies a source range in a service file.
func (*Location) Descriptor
deprecated
func (*Location) GetEndColumn ¶
func (*Location) GetEndLine ¶
func (*Location) ProtoMessage ¶
func (*Location) ProtoMessage()
func (*Location) ProtoReflect ¶
func (x *Location) ProtoReflect() protoreflect.Message
type PackageInfo ¶
type PackageInfo struct {
// name is the language-level package or module name.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// relative_path is the package directory relative to the service root.
RelativePath string `protobuf:"bytes,2,opt,name=relative_path,json=relativePath,proto3" json:"relative_path,omitempty"`
// files are source files that belong to this package.
Files []string `protobuf:"bytes,3,rep,name=files,proto3" json:"files,omitempty"`
// imports are direct imports declared by the package.
Imports []string `protobuf:"bytes,4,rep,name=imports,proto3" json:"imports,omitempty"`
// doc is package-level documentation from source comments.
Doc string `protobuf:"bytes,5,opt,name=doc,proto3" json:"doc,omitempty"`
// contains filtered or unexported fields
}
PackageInfo describes one language package or module in the project.
func (*PackageInfo) Descriptor
deprecated
func (*PackageInfo) Descriptor() ([]byte, []int)
Deprecated: Use PackageInfo.ProtoReflect.Descriptor instead.
func (*PackageInfo) GetDoc ¶
func (x *PackageInfo) GetDoc() string
func (*PackageInfo) GetFiles ¶
func (x *PackageInfo) GetFiles() []string
func (*PackageInfo) GetImports ¶
func (x *PackageInfo) GetImports() []string
func (*PackageInfo) GetName ¶
func (x *PackageInfo) GetName() string
func (*PackageInfo) GetRelativePath ¶
func (x *PackageInfo) GetRelativePath() string
func (*PackageInfo) ProtoMessage ¶
func (*PackageInfo) ProtoMessage()
func (*PackageInfo) ProtoReflect ¶
func (x *PackageInfo) ProtoReflect() protoreflect.Message
func (*PackageInfo) Reset ¶
func (x *PackageInfo) Reset()
func (*PackageInfo) String ¶
func (x *PackageInfo) String() string
type RemoveDependencyRequest ¶
type RemoveDependencyRequest struct {
// package_name is the package or dependency identifier used by the native manager.
PackageName string `protobuf:"bytes,1,opt,name=package_name,json=packageName,proto3" json:"package_name,omitempty"`
// contains filtered or unexported fields
}
RemoveDependencyRequest identifies a package to remove with the native package manager.
func (*RemoveDependencyRequest) Descriptor
deprecated
func (*RemoveDependencyRequest) Descriptor() ([]byte, []int)
Deprecated: Use RemoveDependencyRequest.ProtoReflect.Descriptor instead.
func (*RemoveDependencyRequest) GetPackageName ¶
func (x *RemoveDependencyRequest) GetPackageName() string
func (*RemoveDependencyRequest) ProtoMessage ¶
func (*RemoveDependencyRequest) ProtoMessage()
func (*RemoveDependencyRequest) ProtoReflect ¶
func (x *RemoveDependencyRequest) ProtoReflect() protoreflect.Message
func (*RemoveDependencyRequest) Reset ¶
func (x *RemoveDependencyRequest) Reset()
func (*RemoveDependencyRequest) String ¶
func (x *RemoveDependencyRequest) String() string
type RemoveDependencyResponse ¶
type RemoveDependencyResponse struct {
// success is true when the requested operation completed successfully.
Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
// error explains why the operation failed; empty means success at this layer.
Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"`
// contains filtered or unexported fields
}
RemoveDependencyResponse reports whether the package manager removed the dependency.
func (*RemoveDependencyResponse) Descriptor
deprecated
func (*RemoveDependencyResponse) Descriptor() ([]byte, []int)
Deprecated: Use RemoveDependencyResponse.ProtoReflect.Descriptor instead.
func (*RemoveDependencyResponse) GetError ¶
func (x *RemoveDependencyResponse) GetError() string
func (*RemoveDependencyResponse) GetSuccess ¶
func (x *RemoveDependencyResponse) GetSuccess() bool
func (*RemoveDependencyResponse) ProtoMessage ¶
func (*RemoveDependencyResponse) ProtoMessage()
func (*RemoveDependencyResponse) ProtoReflect ¶
func (x *RemoveDependencyResponse) ProtoReflect() protoreflect.Message
func (*RemoveDependencyResponse) Reset ¶
func (x *RemoveDependencyResponse) Reset()
func (*RemoveDependencyResponse) String ¶
func (x *RemoveDependencyResponse) String() string
type RenameSymbolRequest ¶
type RenameSymbolRequest struct {
// file is a workspace- or service-relative source file path.
File string `protobuf:"bytes,1,opt,name=file,proto3" json:"file,omitempty"`
// line is the 1-based source line number.
Line int32 `protobuf:"varint,2,opt,name=line,proto3" json:"line,omitempty"`
// column is the 1-based source column number when known.
Column int32 `protobuf:"varint,3,opt,name=column,proto3" json:"column,omitempty"`
// new_name is the replacement symbol name requested by the caller.
NewName string `protobuf:"bytes,4,opt,name=new_name,json=newName,proto3" json:"new_name,omitempty"`
// contains filtered or unexported fields
}
RenameSymbolRequest asks the language server to rename a symbol.
func (*RenameSymbolRequest) Descriptor
deprecated
func (*RenameSymbolRequest) Descriptor() ([]byte, []int)
Deprecated: Use RenameSymbolRequest.ProtoReflect.Descriptor instead.
func (*RenameSymbolRequest) GetColumn ¶
func (x *RenameSymbolRequest) GetColumn() int32
func (*RenameSymbolRequest) GetFile ¶
func (x *RenameSymbolRequest) GetFile() string
func (*RenameSymbolRequest) GetLine ¶
func (x *RenameSymbolRequest) GetLine() int32
func (*RenameSymbolRequest) GetNewName ¶
func (x *RenameSymbolRequest) GetNewName() string
func (*RenameSymbolRequest) ProtoMessage ¶
func (*RenameSymbolRequest) ProtoMessage()
func (*RenameSymbolRequest) ProtoReflect ¶
func (x *RenameSymbolRequest) ProtoReflect() protoreflect.Message
func (*RenameSymbolRequest) Reset ¶
func (x *RenameSymbolRequest) Reset()
func (*RenameSymbolRequest) String ¶
func (x *RenameSymbolRequest) String() string
type RenameSymbolResponse ¶
type RenameSymbolResponse struct {
// success is true when the requested operation completed successfully.
Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
// error explains why the operation failed; empty means success at this layer.
Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"`
// edits contains the source replacements produced by the language server.
Edits []*TextEdit `protobuf:"bytes,3,rep,name=edits,proto3" json:"edits,omitempty"`
// files lists files modified by the rename.
Files []string `protobuf:"bytes,4,rep,name=files,proto3" json:"files,omitempty"`
// contains filtered or unexported fields
}
RenameSymbolResponse reports the edits produced and applied for a rename.
func (*RenameSymbolResponse) Descriptor
deprecated
func (*RenameSymbolResponse) Descriptor() ([]byte, []int)
Deprecated: Use RenameSymbolResponse.ProtoReflect.Descriptor instead.
func (*RenameSymbolResponse) GetEdits ¶
func (x *RenameSymbolResponse) GetEdits() []*TextEdit
func (*RenameSymbolResponse) GetError ¶
func (x *RenameSymbolResponse) GetError() string
func (*RenameSymbolResponse) GetFiles ¶
func (x *RenameSymbolResponse) GetFiles() []string
func (*RenameSymbolResponse) GetSuccess ¶
func (x *RenameSymbolResponse) GetSuccess() bool
func (*RenameSymbolResponse) ProtoMessage ¶
func (*RenameSymbolResponse) ProtoMessage()
func (*RenameSymbolResponse) ProtoReflect ¶
func (x *RenameSymbolResponse) ProtoReflect() protoreflect.Message
func (*RenameSymbolResponse) Reset ¶
func (x *RenameSymbolResponse) Reset()
func (*RenameSymbolResponse) String ¶
func (x *RenameSymbolResponse) String() string
type Symbol ¶
type Symbol struct {
// name is the symbol name reported by the language tooling.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// kind classifies the language construct so clients can filter or render it.
Kind SymbolKind `protobuf:"varint,2,opt,name=kind,proto3,enum=codefly.services.tooling.v0.SymbolKind" json:"kind,omitempty"`
// location points to the declaration or source range for the symbol.
Location *Location `protobuf:"bytes,3,opt,name=location,proto3" json:"location,omitempty"`
// signature is the declaration text or callable shape for a symbol.
Signature string `protobuf:"bytes,4,opt,name=signature,proto3" json:"signature,omitempty"`
// documentation is the doc comment or hover text supplied by language tooling.
Documentation string `protobuf:"bytes,5,opt,name=documentation,proto3" json:"documentation,omitempty"`
// parent is the containing package, type, or symbol when known.
Parent string `protobuf:"bytes,6,opt,name=parent,proto3" json:"parent,omitempty"`
// children contains nested symbols such as fields or interface methods.
Children []*Symbol `protobuf:"bytes,7,rep,name=children,proto3" json:"children,omitempty"`
// qualified_name disambiguates across packages and receivers.
// For functions: "<package>.<name>", for methods: "<package>.<Type>.<name>"
QualifiedName string `protobuf:"bytes,8,opt,name=qualified_name,json=qualifiedName,proto3" json:"qualified_name,omitempty"`
// body_hash is sha256 of the normalized function body text.
// Whitespace-insensitive (trailing WS stripped, blank lines dropped).
// Changes when implementation changes; stable across reformatting.
BodyHash string `protobuf:"bytes,9,opt,name=body_hash,json=bodyHash,proto3" json:"body_hash,omitempty"`
// signature_hash is sha256 of the function signature (excluding body).
// Changes when the API contract changes (new parameter, return type).
SignatureHash string `protobuf:"bytes,10,opt,name=signature_hash,json=signatureHash,proto3" json:"signature_hash,omitempty"`
// contains filtered or unexported fields
}
Symbol represents a language symbol discovered by the agent's analyzer.
func (*Symbol) Descriptor
deprecated
func (*Symbol) GetBodyHash ¶
func (*Symbol) GetChildren ¶
func (*Symbol) GetDocumentation ¶
func (*Symbol) GetKind ¶
func (x *Symbol) GetKind() SymbolKind
func (*Symbol) GetLocation ¶
func (*Symbol) GetQualifiedName ¶
func (*Symbol) GetSignature ¶
func (*Symbol) GetSignatureHash ¶
func (*Symbol) ProtoMessage ¶
func (*Symbol) ProtoMessage()
func (*Symbol) ProtoReflect ¶
func (x *Symbol) ProtoReflect() protoreflect.Message
type SymbolKind ¶
type SymbolKind int32
SymbolKind enumerates supported symbol kinds.
const ( // SYMBOL_KIND_UNKNOWN is the default value when symbol kind is not specified. SymbolKind_SYMBOL_KIND_UNKNOWN SymbolKind = 0 // SYMBOL_KIND_FUNCTION represents a function symbol. SymbolKind_SYMBOL_KIND_FUNCTION SymbolKind = 1 // SYMBOL_KIND_METHOD represents a method symbol. SymbolKind_SYMBOL_KIND_METHOD SymbolKind = 2 // SYMBOL_KIND_STRUCT represents a struct symbol. SymbolKind_SYMBOL_KIND_STRUCT SymbolKind = 3 // SYMBOL_KIND_INTERFACE represents an interface symbol. SymbolKind_SYMBOL_KIND_INTERFACE SymbolKind = 4 // SYMBOL_KIND_CONSTANT represents a constant symbol. SymbolKind_SYMBOL_KIND_CONSTANT SymbolKind = 5 // SYMBOL_KIND_VARIABLE represents a variable symbol. SymbolKind_SYMBOL_KIND_VARIABLE SymbolKind = 6 // SYMBOL_KIND_TYPE_ALIAS represents a type alias symbol. SymbolKind_SYMBOL_KIND_TYPE_ALIAS SymbolKind = 7 // SYMBOL_KIND_PACKAGE represents a package symbol. SymbolKind_SYMBOL_KIND_PACKAGE SymbolKind = 8 // SYMBOL_KIND_FIELD represents a field symbol. SymbolKind_SYMBOL_KIND_FIELD SymbolKind = 9 // SYMBOL_KIND_ENUM represents an enum symbol. SymbolKind_SYMBOL_KIND_ENUM SymbolKind = 10 // SYMBOL_KIND_CLASS represents a class symbol. SymbolKind_SYMBOL_KIND_CLASS SymbolKind = 11 )
func (SymbolKind) Descriptor ¶
func (SymbolKind) Descriptor() protoreflect.EnumDescriptor
func (SymbolKind) Enum ¶
func (x SymbolKind) Enum() *SymbolKind
func (SymbolKind) EnumDescriptor
deprecated
func (SymbolKind) EnumDescriptor() ([]byte, []int)
Deprecated: Use SymbolKind.Descriptor instead.
func (SymbolKind) Number ¶
func (x SymbolKind) Number() protoreflect.EnumNumber
func (SymbolKind) String ¶
func (x SymbolKind) String() string
func (SymbolKind) Type ¶
func (SymbolKind) Type() protoreflect.EnumType
type TestRequest ¶
type TestRequest struct {
// path is a workspace- or service-relative filesystem path.
Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` // optional: restrict to package/file
// verbose asks the native runner to retain more detailed output.
Verbose bool `protobuf:"varint,2,opt,name=verbose,proto3" json:"verbose,omitempty"`
// contains filtered or unexported fields
}
TestRequest asks the agent to run native tests, optionally scoped by path.
func (*TestRequest) Descriptor
deprecated
func (*TestRequest) Descriptor() ([]byte, []int)
Deprecated: Use TestRequest.ProtoReflect.Descriptor instead.
func (*TestRequest) GetPath ¶
func (x *TestRequest) GetPath() string
func (*TestRequest) GetVerbose ¶
func (x *TestRequest) GetVerbose() bool
func (*TestRequest) ProtoMessage ¶
func (*TestRequest) ProtoMessage()
func (*TestRequest) ProtoReflect ¶
func (x *TestRequest) ProtoReflect() protoreflect.Message
func (*TestRequest) Reset ¶
func (x *TestRequest) Reset()
func (*TestRequest) String ¶
func (x *TestRequest) String() string
type TestResponse ¶
type TestResponse struct {
// success is true when the requested operation completed successfully.
Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
// output is raw command, build, lint, or test output preserved for diagnostics.
Output string `protobuf:"bytes,2,opt,name=output,proto3" json:"output,omitempty"`
// tests_run is the total number of tests executed.
TestsRun int32 `protobuf:"varint,3,opt,name=tests_run,json=testsRun,proto3" json:"tests_run,omitempty"`
// tests_passed is the number of tests that passed.
TestsPassed int32 `protobuf:"varint,4,opt,name=tests_passed,json=testsPassed,proto3" json:"tests_passed,omitempty"`
// tests_failed is the number of tests that failed.
TestsFailed int32 `protobuf:"varint,5,opt,name=tests_failed,json=testsFailed,proto3" json:"tests_failed,omitempty"`
// tests_skipped is the number of tests skipped by the runner.
TestsSkipped int32 `protobuf:"varint,6,opt,name=tests_skipped,json=testsSkipped,proto3" json:"tests_skipped,omitempty"`
// coverage_pct is the overall coverage percentage when available.
CoveragePct float32 `protobuf:"fixed32,7,opt,name=coverage_pct,json=coveragePct,proto3" json:"coverage_pct,omitempty"`
// failures are concise failing test names or messages.
Failures []string `protobuf:"bytes,8,rep,name=failures,proto3" json:"failures,omitempty"`
// contains filtered or unexported fields
}
TestResponse returns structured test counts and raw runner output.
func (*TestResponse) Descriptor
deprecated
func (*TestResponse) Descriptor() ([]byte, []int)
Deprecated: Use TestResponse.ProtoReflect.Descriptor instead.
func (*TestResponse) GetCoveragePct ¶
func (x *TestResponse) GetCoveragePct() float32
func (*TestResponse) GetFailures ¶
func (x *TestResponse) GetFailures() []string
func (*TestResponse) GetOutput ¶
func (x *TestResponse) GetOutput() string
func (*TestResponse) GetSuccess ¶
func (x *TestResponse) GetSuccess() bool
func (*TestResponse) GetTestsFailed ¶
func (x *TestResponse) GetTestsFailed() int32
func (*TestResponse) GetTestsPassed ¶
func (x *TestResponse) GetTestsPassed() int32
func (*TestResponse) GetTestsRun ¶
func (x *TestResponse) GetTestsRun() int32
func (*TestResponse) GetTestsSkipped ¶
func (x *TestResponse) GetTestsSkipped() int32
func (*TestResponse) ProtoMessage ¶
func (*TestResponse) ProtoMessage()
func (*TestResponse) ProtoReflect ¶
func (x *TestResponse) ProtoReflect() protoreflect.Message
func (*TestResponse) Reset ¶
func (x *TestResponse) Reset()
func (*TestResponse) String ¶
func (x *TestResponse) String() string
type TextEdit ¶
type TextEdit struct {
// file is a workspace- or service-relative source file path.
File string `protobuf:"bytes,1,opt,name=file,proto3" json:"file,omitempty"`
// start_line is the 1-based starting line for an edit range.
StartLine int32 `protobuf:"varint,2,opt,name=start_line,json=startLine,proto3" json:"start_line,omitempty"`
// start_column is the 1-based starting column for an edit range.
StartColumn int32 `protobuf:"varint,3,opt,name=start_column,json=startColumn,proto3" json:"start_column,omitempty"`
// end_line is the 1-based ending source line for a range.
EndLine int32 `protobuf:"varint,4,opt,name=end_line,json=endLine,proto3" json:"end_line,omitempty"`
// end_column is the 1-based ending source column for a range.
EndColumn int32 `protobuf:"varint,5,opt,name=end_column,json=endColumn,proto3" json:"end_column,omitempty"`
// new_text is the replacement text inserted by this edit.
NewText string `protobuf:"bytes,6,opt,name=new_text,json=newText,proto3" json:"new_text,omitempty"`
// contains filtered or unexported fields
}
TextEdit represents one source replacement produced by language tooling.
func (*TextEdit) Descriptor
deprecated
func (*TextEdit) GetEndColumn ¶
func (*TextEdit) GetEndLine ¶
func (*TextEdit) GetNewText ¶
func (*TextEdit) GetStartColumn ¶
func (*TextEdit) GetStartLine ¶
func (*TextEdit) ProtoMessage ¶
func (*TextEdit) ProtoMessage()
func (*TextEdit) ProtoReflect ¶
func (x *TextEdit) ProtoReflect() protoreflect.Message
type ToolingClient ¶
type ToolingClient interface {
// LSP operations
ListSymbols(ctx context.Context, in *ListSymbolsRequest, opts ...grpc.CallOption) (*ListSymbolsResponse, error)
// GetDiagnostics returns compiler, linter, or language-server diagnostics.
GetDiagnostics(ctx context.Context, in *GetDiagnosticsRequest, opts ...grpc.CallOption) (*GetDiagnosticsResponse, error)
// GoToDefinition resolves the declaration for a symbol at a source position.
GoToDefinition(ctx context.Context, in *GoToDefinitionRequest, opts ...grpc.CallOption) (*GoToDefinitionResponse, error)
// FindReferences resolves usage locations for a symbol at a source position.
FindReferences(ctx context.Context, in *FindReferencesRequest, opts ...grpc.CallOption) (*FindReferencesResponse, error)
// RenameSymbol applies a language-aware rename across the service.
RenameSymbol(ctx context.Context, in *RenameSymbolRequest, opts ...grpc.CallOption) (*RenameSymbolResponse, error)
// GetHoverInfo returns hover documentation and type information.
GetHoverInfo(ctx context.Context, in *GetHoverInfoRequest, opts ...grpc.CallOption) (*GetHoverInfoResponse, error)
// GetCompletions returns completion suggestions at a source position.
GetCompletions(ctx context.Context, in *GetCompletionsRequest, opts ...grpc.CallOption) (*GetCompletionsResponse, error)
// Code modification
Fix(ctx context.Context, in *FixRequest, opts ...grpc.CallOption) (*FixResponse, error)
// ApplyEdit applies a smart edit and optional language fixers.
ApplyEdit(ctx context.Context, in *ApplyEditRequest, opts ...grpc.CallOption) (*ApplyEditResponse, error)
// Dependency management
ListDependencies(ctx context.Context, in *ListDependenciesRequest, opts ...grpc.CallOption) (*ListDependenciesResponse, error)
// AddDependency installs a package through the native package manager.
AddDependency(ctx context.Context, in *AddDependencyRequest, opts ...grpc.CallOption) (*AddDependencyResponse, error)
// RemoveDependency removes a package through the native package manager.
RemoveDependency(ctx context.Context, in *RemoveDependencyRequest, opts ...grpc.CallOption) (*RemoveDependencyResponse, error)
// Analysis
GetProjectInfo(ctx context.Context, in *GetProjectInfoRequest, opts ...grpc.CallOption) (*GetProjectInfoResponse, error)
// GetCallGraph runs whole-program call graph analysis.
GetCallGraph(ctx context.Context, in *GetCallGraphRequest, opts ...grpc.CallOption) (*GetCallGraphResponse, error)
// Dev validation
Build(ctx context.Context, in *BuildRequest, opts ...grpc.CallOption) (*BuildResponse, error)
// Test runs native tests and returns structured counts.
Test(ctx context.Context, in *TestRequest, opts ...grpc.CallOption) (*TestResponse, error)
// Lint runs native linting and returns structured diagnostics.
Lint(ctx context.Context, in *LintRequest, opts ...grpc.CallOption) (*LintResponse, error)
}
ToolingClient is the client API for Tooling service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
Tooling provides language-specific code operations. Every language agent (go-grpc, python-fastapi, etc.) implements this service.
NOTE: File operations (read, write, list, search) and git operations are NOT part of this service. Mind handles those directly via its VFS.
func NewToolingClient ¶
func NewToolingClient(cc grpc.ClientConnInterface) ToolingClient
type ToolingServer ¶
type ToolingServer interface {
// LSP operations
ListSymbols(context.Context, *ListSymbolsRequest) (*ListSymbolsResponse, error)
// GetDiagnostics returns compiler, linter, or language-server diagnostics.
GetDiagnostics(context.Context, *GetDiagnosticsRequest) (*GetDiagnosticsResponse, error)
// GoToDefinition resolves the declaration for a symbol at a source position.
GoToDefinition(context.Context, *GoToDefinitionRequest) (*GoToDefinitionResponse, error)
// FindReferences resolves usage locations for a symbol at a source position.
FindReferences(context.Context, *FindReferencesRequest) (*FindReferencesResponse, error)
// RenameSymbol applies a language-aware rename across the service.
RenameSymbol(context.Context, *RenameSymbolRequest) (*RenameSymbolResponse, error)
// GetHoverInfo returns hover documentation and type information.
GetHoverInfo(context.Context, *GetHoverInfoRequest) (*GetHoverInfoResponse, error)
// GetCompletions returns completion suggestions at a source position.
GetCompletions(context.Context, *GetCompletionsRequest) (*GetCompletionsResponse, error)
// Code modification
Fix(context.Context, *FixRequest) (*FixResponse, error)
// ApplyEdit applies a smart edit and optional language fixers.
ApplyEdit(context.Context, *ApplyEditRequest) (*ApplyEditResponse, error)
// Dependency management
ListDependencies(context.Context, *ListDependenciesRequest) (*ListDependenciesResponse, error)
// AddDependency installs a package through the native package manager.
AddDependency(context.Context, *AddDependencyRequest) (*AddDependencyResponse, error)
// RemoveDependency removes a package through the native package manager.
RemoveDependency(context.Context, *RemoveDependencyRequest) (*RemoveDependencyResponse, error)
// Analysis
GetProjectInfo(context.Context, *GetProjectInfoRequest) (*GetProjectInfoResponse, error)
// GetCallGraph runs whole-program call graph analysis.
GetCallGraph(context.Context, *GetCallGraphRequest) (*GetCallGraphResponse, error)
// Dev validation
Build(context.Context, *BuildRequest) (*BuildResponse, error)
// Test runs native tests and returns structured counts.
Test(context.Context, *TestRequest) (*TestResponse, error)
// Lint runs native linting and returns structured diagnostics.
Lint(context.Context, *LintRequest) (*LintResponse, error)
// contains filtered or unexported methods
}
ToolingServer is the server API for Tooling service. All implementations must embed UnimplementedToolingServer for forward compatibility.
Tooling provides language-specific code operations. Every language agent (go-grpc, python-fastapi, etc.) implements this service.
NOTE: File operations (read, write, list, search) and git operations are NOT part of this service. Mind handles those directly via its VFS.
type UnimplementedToolingServer ¶
type UnimplementedToolingServer struct{}
UnimplementedToolingServer must be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedToolingServer) AddDependency ¶
func (UnimplementedToolingServer) AddDependency(context.Context, *AddDependencyRequest) (*AddDependencyResponse, error)
func (UnimplementedToolingServer) ApplyEdit ¶
func (UnimplementedToolingServer) ApplyEdit(context.Context, *ApplyEditRequest) (*ApplyEditResponse, error)
func (UnimplementedToolingServer) Build ¶
func (UnimplementedToolingServer) Build(context.Context, *BuildRequest) (*BuildResponse, error)
func (UnimplementedToolingServer) FindReferences ¶
func (UnimplementedToolingServer) FindReferences(context.Context, *FindReferencesRequest) (*FindReferencesResponse, error)
func (UnimplementedToolingServer) Fix ¶
func (UnimplementedToolingServer) Fix(context.Context, *FixRequest) (*FixResponse, error)
func (UnimplementedToolingServer) GetCallGraph ¶
func (UnimplementedToolingServer) GetCallGraph(context.Context, *GetCallGraphRequest) (*GetCallGraphResponse, error)
func (UnimplementedToolingServer) GetCompletions ¶
func (UnimplementedToolingServer) GetCompletions(context.Context, *GetCompletionsRequest) (*GetCompletionsResponse, error)
func (UnimplementedToolingServer) GetDiagnostics ¶
func (UnimplementedToolingServer) GetDiagnostics(context.Context, *GetDiagnosticsRequest) (*GetDiagnosticsResponse, error)
func (UnimplementedToolingServer) GetHoverInfo ¶
func (UnimplementedToolingServer) GetHoverInfo(context.Context, *GetHoverInfoRequest) (*GetHoverInfoResponse, error)
func (UnimplementedToolingServer) GetProjectInfo ¶
func (UnimplementedToolingServer) GetProjectInfo(context.Context, *GetProjectInfoRequest) (*GetProjectInfoResponse, error)
func (UnimplementedToolingServer) GoToDefinition ¶
func (UnimplementedToolingServer) GoToDefinition(context.Context, *GoToDefinitionRequest) (*GoToDefinitionResponse, error)
func (UnimplementedToolingServer) Lint ¶
func (UnimplementedToolingServer) Lint(context.Context, *LintRequest) (*LintResponse, error)
func (UnimplementedToolingServer) ListDependencies ¶
func (UnimplementedToolingServer) ListDependencies(context.Context, *ListDependenciesRequest) (*ListDependenciesResponse, error)
func (UnimplementedToolingServer) ListSymbols ¶
func (UnimplementedToolingServer) ListSymbols(context.Context, *ListSymbolsRequest) (*ListSymbolsResponse, error)
func (UnimplementedToolingServer) RemoveDependency ¶
func (UnimplementedToolingServer) RemoveDependency(context.Context, *RemoveDependencyRequest) (*RemoveDependencyResponse, error)
func (UnimplementedToolingServer) RenameSymbol ¶
func (UnimplementedToolingServer) RenameSymbol(context.Context, *RenameSymbolRequest) (*RenameSymbolResponse, error)
func (UnimplementedToolingServer) Test ¶
func (UnimplementedToolingServer) Test(context.Context, *TestRequest) (*TestResponse, error)
type UnsafeToolingServer ¶
type UnsafeToolingServer interface {
// contains filtered or unexported methods
}
UnsafeToolingServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ToolingServer will result in compilation errors.