Documentation ¶
Overview ¶
Package searchengine is a generated protocol buffer package.
It is generated from these files:
api.proto
It has these top-level messages:
SearchRequest SearchResponse Title Subtitle Suggestion
Index ¶
- func RegisterAPIServer(s *grpc.Server, srv APIServer)
- type APIClient
- type APIServer
- type SearchRequest
- type SearchResponse
- func (*SearchResponse) Descriptor() ([]byte, []int)
- func (m *SearchResponse) GetSelectedTitle() *Title
- func (m *SearchResponse) GetSubtitles() []*Subtitle
- func (m *SearchResponse) GetSuggestion() *Suggestion
- func (m *SearchResponse) GetTitles() []*Title
- func (*SearchResponse) ProtoMessage()
- func (m *SearchResponse) Reset()
- func (m *SearchResponse) String() string
- type Subtitle
- type Suggestion
- type Title
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterAPIServer ¶
Types ¶
type APIClient ¶
type APIClient interface {
Search(ctx context.Context, in *SearchRequest, opts ...grpc.CallOption) (*SearchResponse, error)
}
func NewAPIClient ¶
func NewAPIClient(cc *grpc.ClientConn) APIClient
type APIServer ¶
type APIServer interface {
Search(context.Context, *SearchRequest) (*SearchResponse, error)
}
type SearchRequest ¶
type SearchRequest struct { Query string `protobuf:"bytes,1,opt,name=query" json:"query,omitempty"` Languages []string `protobuf:"bytes,2,rep,name=languages" json:"languages,omitempty"` TitleId int64 `protobuf:"varint,3,opt,name=title_id,json=titleId" json:"title_id,omitempty"` Offset int32 `protobuf:"varint,4,opt,name=offset" json:"offset,omitempty"` Limit int32 `protobuf:"varint,5,opt,name=limit" json:"limit,omitempty"` }
func (*SearchRequest) Descriptor ¶
func (*SearchRequest) Descriptor() ([]byte, []int)
func (*SearchRequest) ProtoMessage ¶
func (*SearchRequest) ProtoMessage()
func (*SearchRequest) Reset ¶
func (m *SearchRequest) Reset()
func (*SearchRequest) String ¶
func (m *SearchRequest) String() string
type SearchResponse ¶
type SearchResponse struct { Query string `protobuf:"bytes,1,opt,name=query" json:"query,omitempty"` Offset int32 `protobuf:"varint,2,opt,name=offset" json:"offset,omitempty"` Limit int32 `protobuf:"varint,3,opt,name=limit" json:"limit,omitempty"` SelectedTitle *Title `protobuf:"bytes,4,opt,name=selected_title,json=selectedTitle" json:"selected_title,omitempty"` Suggestion *Suggestion `protobuf:"bytes,5,opt,name=suggestion" json:"suggestion,omitempty"` TotalSubtitles int32 `protobuf:"varint,6,opt,name=total_subtitles,json=totalSubtitles" json:"total_subtitles,omitempty"` Titles []*Title `protobuf:"bytes,7,rep,name=titles" json:"titles,omitempty"` Subtitles []*Subtitle `protobuf:"bytes,8,rep,name=subtitles" json:"subtitles,omitempty"` }
func (*SearchResponse) Descriptor ¶
func (*SearchResponse) Descriptor() ([]byte, []int)
func (*SearchResponse) GetSelectedTitle ¶
func (m *SearchResponse) GetSelectedTitle() *Title
func (*SearchResponse) GetSubtitles ¶
func (m *SearchResponse) GetSubtitles() []*Subtitle
func (*SearchResponse) GetSuggestion ¶
func (m *SearchResponse) GetSuggestion() *Suggestion
func (*SearchResponse) GetTitles ¶
func (m *SearchResponse) GetTitles() []*Title
func (*SearchResponse) ProtoMessage ¶
func (*SearchResponse) ProtoMessage()
func (*SearchResponse) Reset ¶
func (m *SearchResponse) Reset()
func (*SearchResponse) String ¶
func (m *SearchResponse) String() string
type Subtitle ¶
type Subtitle struct { Id string `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"` Start int32 `protobuf:"varint,2,opt,name=start" json:"start,omitempty"` Texts []string `protobuf:"bytes,3,rep,name=texts" json:"texts,omitempty"` TitleId string `protobuf:"bytes,4,opt,name=title_id,json=titleId" json:"title_id,omitempty"` TitleName string `protobuf:"bytes,5,opt,name=title_name,json=titleName" json:"title_name,omitempty"` }
func (*Subtitle) Descriptor ¶
func (*Subtitle) ProtoMessage ¶
func (*Subtitle) ProtoMessage()
type Suggestion ¶
type Suggestion struct { Query string `protobuf:"bytes,1,opt,name=query" json:"query,omitempty"` Highlight string `protobuf:"bytes,2,opt,name=highlight" json:"highlight,omitempty"` }
func (*Suggestion) Descriptor ¶
func (*Suggestion) Descriptor() ([]byte, []int)
func (*Suggestion) ProtoMessage ¶
func (*Suggestion) ProtoMessage()
func (*Suggestion) Reset ¶
func (m *Suggestion) Reset()
func (*Suggestion) String ¶
func (m *Suggestion) String() string
type Title ¶
type Title struct { Id string `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"` }
func (*Title) Descriptor ¶
func (*Title) ProtoMessage ¶
func (*Title) ProtoMessage()
Click to show internal directories.
Click to hide internal directories.