Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterSyntaxServer(s grpc.ServiceRegistrar, srv SyntaxServer)
- type Client
- type SearchRequest
- func (*SearchRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SearchRequest) GetCaptureNames() []string
- func (x *SearchRequest) GetQuery() string
- func (*SearchRequest) ProtoMessage()
- func (x *SearchRequest) ProtoReflect() protoreflect.Message
- func (x *SearchRequest) Reset()
- func (x *SearchRequest) String() string
- type SearchResponse
- func (*SearchResponse) Descriptor() ([]byte, []int)deprecated
- func (x *SearchResponse) GetCaptureName() string
- func (x *SearchResponse) GetFrom() *termrpc.Coordinates
- func (x *SearchResponse) GetText() string
- func (x *SearchResponse) GetTo() *termrpc.Coordinates
- func (x *SearchResponse) GetUri() string
- func (*SearchResponse) ProtoMessage()
- func (x *SearchResponse) ProtoReflect() protoreflect.Message
- func (x *SearchResponse) Reset()
- func (x *SearchResponse) String() string
- type SyntaxClient
- type SyntaxServer
- type Syntax_SearchClient
- type Syntax_SearchServer
- type UnimplementedSyntaxServer
- type UnsafeSyntaxServer
Constants ¶
const (
Syntax_Search_FullMethodName = "/syntax.Syntax/Search"
)
Variables ¶
var File_syntaxrpc_syntax_proto protoreflect.FileDescriptor
var Syntax_ServiceDesc = grpc.ServiceDesc{ ServiceName: "syntax.Syntax", HandlerType: (*SyntaxServer)(nil), Methods: []grpc.MethodDesc{}, Streams: []grpc.StreamDesc{ { StreamName: "Search", Handler: _Syntax_Search_Handler, ServerStreams: true, }, }, Metadata: "syntaxrpc/syntax.proto", }
Syntax_ServiceDesc is the grpc.ServiceDesc for Syntax service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterSyntaxServer ¶
func RegisterSyntaxServer(s grpc.ServiceRegistrar, srv SyntaxServer)
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client satisfies syntaxapi.Searcher via gRPC.
func NewClient ¶
func NewClient(ctx context.Context, cc grpc.ClientConnInterface) *Client
NewClient allocates storage for a new Client and initializes it with the given connection.
type SearchRequest ¶
type SearchRequest struct {
Query string `protobuf:"bytes,1,opt,name=query,proto3" json:"query,omitempty"`
CaptureNames []string `protobuf:"bytes,2,rep,name=capture_names,json=captureNames,proto3" json:"capture_names,omitempty"`
// contains filtered or unexported fields
}
func (*SearchRequest) Descriptor
deprecated
func (*SearchRequest) Descriptor() ([]byte, []int)
Deprecated: Use SearchRequest.ProtoReflect.Descriptor instead.
func (*SearchRequest) GetCaptureNames ¶
func (x *SearchRequest) GetCaptureNames() []string
func (*SearchRequest) GetQuery ¶
func (x *SearchRequest) GetQuery() string
func (*SearchRequest) ProtoMessage ¶
func (*SearchRequest) ProtoMessage()
func (*SearchRequest) ProtoReflect ¶
func (x *SearchRequest) ProtoReflect() protoreflect.Message
func (*SearchRequest) Reset ¶
func (x *SearchRequest) Reset()
func (*SearchRequest) String ¶
func (x *SearchRequest) String() string
type SearchResponse ¶
type SearchResponse struct {
Uri string `protobuf:"bytes,1,opt,name=uri,proto3" json:"uri,omitempty"`
Text string `protobuf:"bytes,2,opt,name=text,proto3" json:"text,omitempty"`
From *termrpc.Coordinates `protobuf:"bytes,4,opt,name=from,proto3" json:"from,omitempty"`
To *termrpc.Coordinates `protobuf:"bytes,5,opt,name=to,proto3" json:"to,omitempty"`
CaptureName string `protobuf:"bytes,6,opt,name=capture_name,json=captureName,proto3" json:"capture_name,omitempty"`
// contains filtered or unexported fields
}
func (*SearchResponse) Descriptor
deprecated
func (*SearchResponse) Descriptor() ([]byte, []int)
Deprecated: Use SearchResponse.ProtoReflect.Descriptor instead.
func (*SearchResponse) GetCaptureName ¶ added in v0.0.13
func (x *SearchResponse) GetCaptureName() string
func (*SearchResponse) GetFrom ¶ added in v0.0.13
func (x *SearchResponse) GetFrom() *termrpc.Coordinates
func (*SearchResponse) GetText ¶
func (x *SearchResponse) GetText() string
func (*SearchResponse) GetTo ¶ added in v0.0.13
func (x *SearchResponse) GetTo() *termrpc.Coordinates
func (*SearchResponse) GetUri ¶
func (x *SearchResponse) GetUri() string
func (*SearchResponse) ProtoMessage ¶
func (*SearchResponse) ProtoMessage()
func (*SearchResponse) ProtoReflect ¶
func (x *SearchResponse) ProtoReflect() protoreflect.Message
func (*SearchResponse) Reset ¶
func (x *SearchResponse) Reset()
func (*SearchResponse) String ¶
func (x *SearchResponse) String() string
type SyntaxClient ¶
type SyntaxClient interface {
Search(ctx context.Context, in *SearchRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[SearchResponse], error)
}
SyntaxClient is the client API for Syntax 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.
func NewSyntaxClient ¶
func NewSyntaxClient(cc grpc.ClientConnInterface) SyntaxClient
type SyntaxServer ¶
type SyntaxServer interface {
Search(*SearchRequest, grpc.ServerStreamingServer[SearchResponse]) error
// contains filtered or unexported methods
}
SyntaxServer is the server API for Syntax service. All implementations must embed UnimplementedSyntaxServer for forward compatibility.
type Syntax_SearchClient ¶
type Syntax_SearchClient = grpc.ServerStreamingClient[SearchResponse]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type Syntax_SearchServer ¶
type Syntax_SearchServer = grpc.ServerStreamingServer[SearchResponse]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type UnimplementedSyntaxServer ¶
type UnimplementedSyntaxServer struct{}
UnimplementedSyntaxServer 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 (UnimplementedSyntaxServer) Search ¶
func (UnimplementedSyntaxServer) Search(*SearchRequest, grpc.ServerStreamingServer[SearchResponse]) error
type UnsafeSyntaxServer ¶
type UnsafeSyntaxServer interface {
// contains filtered or unexported methods
}
UnsafeSyntaxServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to SyntaxServer will result in compilation errors.