Documentation ¶
Index ¶
- Variables
- func RegisterSearchServiceServer(s grpc.ServiceRegistrar, srv SearchServiceServer)
- type CreateSearchRequest
- func (*CreateSearchRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateSearchRequest) GetQuery() string
- func (x *CreateSearchRequest) GetRequestId() string
- func (x *CreateSearchRequest) GetUserEmail() string
- func (*CreateSearchRequest) ProtoMessage()
- func (x *CreateSearchRequest) ProtoReflect() protoreflect.Message
- func (x *CreateSearchRequest) Reset()
- func (x *CreateSearchRequest) String() string
- type Highlights
- type Hit
- func (*Hit) Descriptor() ([]byte, []int)deprecated
- func (x *Hit) GetDescription() string
- func (x *Hit) GetHighlights() *Highlights
- func (x *Hit) GetId() int32
- func (x *Hit) GetIdS() string
- func (x *Hit) GetMessageTexts() []*MsgText
- func (x *Hit) GetName() string
- func (*Hit) ProtoMessage()
- func (x *Hit) ProtoReflect() protoreflect.Message
- func (x *Hit) Reset()
- func (x *Hit) String() string
- type IndexChannel
- func (*IndexChannel) Descriptor() ([]byte, []int)deprecated
- func (x *IndexChannel) GetDescription() string
- func (x *IndexChannel) GetId() int32
- func (x *IndexChannel) GetIdS() string
- func (x *IndexChannel) GetMessageTexts() []*MsgText
- func (x *IndexChannel) GetName() string
- func (*IndexChannel) ProtoMessage()
- func (x *IndexChannel) ProtoReflect() protoreflect.Message
- func (x *IndexChannel) Reset()
- func (x *IndexChannel) String() string
- type MsgText
- type SearchResults
- func (*SearchResults) Descriptor() ([]byte, []int)deprecated
- func (x *SearchResults) GetHits() []*Hit
- func (x *SearchResults) GetTotal() int32
- func (*SearchResults) ProtoMessage()
- func (x *SearchResults) ProtoReflect() protoreflect.Message
- func (x *SearchResults) Reset()
- func (x *SearchResults) String() string
- type SearchServiceClient
- type SearchServiceServer
- type UnimplementedSearchServiceServer
- type UnsafeSearchServiceServer
Constants ¶
This section is empty.
Variables ¶
var File_protofiles_search_search_proto protoreflect.FileDescriptor
Functions ¶
func RegisterSearchServiceServer ¶
func RegisterSearchServiceServer(s grpc.ServiceRegistrar, srv SearchServiceServer)
Types ¶
type CreateSearchRequest ¶
type CreateSearchRequest struct { Query string `protobuf:"bytes,1,opt,name=query,proto3" json:"query,omitempty"` UserEmail string `protobuf:"bytes,2,opt,name=user_email,json=userEmail,proto3" json:"user_email,omitempty"` RequestId string `protobuf:"bytes,3,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` // contains filtered or unexported fields }
func (*CreateSearchRequest) Descriptor
deprecated
func (*CreateSearchRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateSearchRequest.ProtoReflect.Descriptor instead.
func (*CreateSearchRequest) GetQuery ¶
func (x *CreateSearchRequest) GetQuery() string
func (*CreateSearchRequest) GetRequestId ¶
func (x *CreateSearchRequest) GetRequestId() string
func (*CreateSearchRequest) GetUserEmail ¶
func (x *CreateSearchRequest) GetUserEmail() string
func (*CreateSearchRequest) ProtoMessage ¶
func (*CreateSearchRequest) ProtoMessage()
func (*CreateSearchRequest) ProtoReflect ¶
func (x *CreateSearchRequest) ProtoReflect() protoreflect.Message
func (*CreateSearchRequest) Reset ¶
func (x *CreateSearchRequest) Reset()
func (*CreateSearchRequest) String ¶
func (x *CreateSearchRequest) String() string
type Highlights ¶
type Highlights struct { Name []string `protobuf:"bytes,1,rep,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*Highlights) Descriptor
deprecated
func (*Highlights) Descriptor() ([]byte, []int)
Deprecated: Use Highlights.ProtoReflect.Descriptor instead.
func (*Highlights) GetName ¶
func (x *Highlights) GetName() []string
func (*Highlights) ProtoMessage ¶
func (*Highlights) ProtoMessage()
func (*Highlights) ProtoReflect ¶
func (x *Highlights) ProtoReflect() protoreflect.Message
func (*Highlights) Reset ¶
func (x *Highlights) Reset()
func (*Highlights) String ¶
func (x *Highlights) String() string
type Hit ¶
type Hit struct { Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` IdS string `protobuf:"bytes,2,opt,name=id_s,json=idS,proto3" json:"id_s,omitempty"` Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"` MessageTexts []*MsgText `protobuf:"bytes,5,rep,name=MessageTexts,proto3" json:"MessageTexts,omitempty"` Highlights *Highlights `protobuf:"bytes,6,opt,name=Highlights,proto3" json:"Highlights,omitempty"` // contains filtered or unexported fields }
func (*Hit) Descriptor
deprecated
func (*Hit) GetDescription ¶
func (*Hit) GetHighlights ¶
func (x *Hit) GetHighlights() *Highlights
func (*Hit) GetMessageTexts ¶
func (*Hit) ProtoMessage ¶
func (*Hit) ProtoMessage()
func (*Hit) ProtoReflect ¶
func (x *Hit) ProtoReflect() protoreflect.Message
type IndexChannel ¶
type IndexChannel struct { Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` IdS string `protobuf:"bytes,2,opt,name=id_s,json=idS,proto3" json:"id_s,omitempty"` Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"` MessageTexts []*MsgText `protobuf:"bytes,5,rep,name=MessageTexts,proto3" json:"MessageTexts,omitempty"` // contains filtered or unexported fields }
func (*IndexChannel) Descriptor
deprecated
func (*IndexChannel) Descriptor() ([]byte, []int)
Deprecated: Use IndexChannel.ProtoReflect.Descriptor instead.
func (*IndexChannel) GetDescription ¶
func (x *IndexChannel) GetDescription() string
func (*IndexChannel) GetId ¶
func (x *IndexChannel) GetId() int32
func (*IndexChannel) GetIdS ¶
func (x *IndexChannel) GetIdS() string
func (*IndexChannel) GetMessageTexts ¶
func (x *IndexChannel) GetMessageTexts() []*MsgText
func (*IndexChannel) GetName ¶
func (x *IndexChannel) GetName() string
func (*IndexChannel) ProtoMessage ¶
func (*IndexChannel) ProtoMessage()
func (*IndexChannel) ProtoReflect ¶
func (x *IndexChannel) ProtoReflect() protoreflect.Message
func (*IndexChannel) Reset ¶
func (x *IndexChannel) Reset()
func (*IndexChannel) String ¶
func (x *IndexChannel) String() string
type MsgText ¶
type MsgText struct { Mtext string `protobuf:"bytes,1,opt,name=mtext,proto3" json:"mtext,omitempty"` // contains filtered or unexported fields }
func (*MsgText) Descriptor
deprecated
func (*MsgText) ProtoMessage ¶
func (*MsgText) ProtoMessage()
func (*MsgText) ProtoReflect ¶
func (x *MsgText) ProtoReflect() protoreflect.Message
type SearchResults ¶
type SearchResults struct { Total int32 `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"` Hits []*Hit `protobuf:"bytes,2,rep,name=Hits,proto3" json:"Hits,omitempty"` // contains filtered or unexported fields }
func (*SearchResults) Descriptor
deprecated
func (*SearchResults) Descriptor() ([]byte, []int)
Deprecated: Use SearchResults.ProtoReflect.Descriptor instead.
func (*SearchResults) GetHits ¶
func (x *SearchResults) GetHits() []*Hit
func (*SearchResults) GetTotal ¶
func (x *SearchResults) GetTotal() int32
func (*SearchResults) ProtoMessage ¶
func (*SearchResults) ProtoMessage()
func (*SearchResults) ProtoReflect ¶
func (x *SearchResults) ProtoReflect() protoreflect.Message
func (*SearchResults) Reset ¶
func (x *SearchResults) Reset()
func (*SearchResults) String ¶
func (x *SearchResults) String() string
type SearchServiceClient ¶
type SearchServiceClient interface {
Search(ctx context.Context, in *CreateSearchRequest, opts ...grpc.CallOption) (*SearchResults, error)
}
SearchServiceClient is the client API for SearchService 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 NewSearchServiceClient ¶
func NewSearchServiceClient(cc grpc.ClientConnInterface) SearchServiceClient
type SearchServiceServer ¶
type SearchServiceServer interface { Search(context.Context, *CreateSearchRequest) (*SearchResults, error) // contains filtered or unexported methods }
SearchServiceServer is the server API for SearchService service. All implementations must embed UnimplementedSearchServiceServer for forward compatibility
type UnimplementedSearchServiceServer ¶
type UnimplementedSearchServiceServer struct { }
UnimplementedSearchServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedSearchServiceServer) Search ¶
func (UnimplementedSearchServiceServer) Search(context.Context, *CreateSearchRequest) (*SearchResults, error)
type UnsafeSearchServiceServer ¶
type UnsafeSearchServiceServer interface {
// contains filtered or unexported methods
}
UnsafeSearchServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to SearchServiceServer will result in compilation errors.