Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SearchServer ¶
type SearchServer struct { experimental_rpc.UnimplementedSearchServer longrunning.UnimplementedOperationsServer // contains filtered or unexported fields }
SearchServer implements a Search server.
func New ¶
func New(config Config, r registry_rpc.RegistryServer) *SearchServer
func (*SearchServer) Index ¶
func (s *SearchServer) Index(ctx context.Context, req *experimental_rpc.IndexRequest) (*longrunning.Operation, error)
Index handles the corresponding API request.
func (*SearchServer) Query ¶
func (s *SearchServer) Query(ctx context.Context, req *experimental_rpc.QueryRequest) (*experimental_rpc.QueryResponse, error)
Query handles the corresponding API request.
Click to show internal directories.
Click to hide internal directories.