Documentation ¶
Index ¶
- Variables
- func NewIndexProviderEndpoints() []*api.Endpoint
- func NewSearchProviderEndpoints() []*api.Endpoint
- func RegisterIndexProviderHandler(s server.Server, hdlr IndexProviderHandler, opts ...server.HandlerOption) error
- func RegisterIndexProviderWeb(r chi.Router, i IndexProviderHandler, ...)
- func RegisterSearchProviderHandler(s server.Server, hdlr SearchProviderHandler, opts ...server.HandlerOption) error
- func RegisterSearchProviderWeb(r chi.Router, i SearchProviderHandler, ...)
- type IndexProviderHandler
- type IndexProviderService
- type IndexSpaceRequest
- func (*IndexSpaceRequest) Descriptor() ([]byte, []int)deprecated
- func (x *IndexSpaceRequest) GetSpaceId() string
- func (x *IndexSpaceRequest) GetUserId() string
- func (m *IndexSpaceRequest) MarshalJSON() ([]byte, error)
- func (*IndexSpaceRequest) ProtoMessage()
- func (x *IndexSpaceRequest) ProtoReflect() protoreflect.Message
- func (x *IndexSpaceRequest) Reset()
- func (x *IndexSpaceRequest) String() string
- func (m *IndexSpaceRequest) UnmarshalJSON(b []byte) error
- type IndexSpaceResponse
- func (*IndexSpaceResponse) Descriptor() ([]byte, []int)deprecated
- func (m *IndexSpaceResponse) MarshalJSON() ([]byte, error)
- func (*IndexSpaceResponse) ProtoMessage()
- func (x *IndexSpaceResponse) ProtoReflect() protoreflect.Message
- func (x *IndexSpaceResponse) Reset()
- func (x *IndexSpaceResponse) String() string
- func (m *IndexSpaceResponse) UnmarshalJSON(b []byte) error
- type SearchIndexRequest
- func (*SearchIndexRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SearchIndexRequest) GetPageSize() int32
- func (x *SearchIndexRequest) GetPageToken() string
- func (x *SearchIndexRequest) GetQuery() string
- func (x *SearchIndexRequest) GetRef() *v0.Reference
- func (m *SearchIndexRequest) MarshalJSON() ([]byte, error)
- func (*SearchIndexRequest) ProtoMessage()
- func (x *SearchIndexRequest) ProtoReflect() protoreflect.Message
- func (x *SearchIndexRequest) Reset()
- func (x *SearchIndexRequest) String() string
- func (m *SearchIndexRequest) UnmarshalJSON(b []byte) error
- type SearchIndexResponse
- func (*SearchIndexResponse) Descriptor() ([]byte, []int)deprecated
- func (x *SearchIndexResponse) GetMatches() []*v0.Match
- func (x *SearchIndexResponse) GetNextPageToken() string
- func (x *SearchIndexResponse) GetTotalMatches() int32
- func (m *SearchIndexResponse) MarshalJSON() ([]byte, error)
- func (*SearchIndexResponse) ProtoMessage()
- func (x *SearchIndexResponse) ProtoReflect() protoreflect.Message
- func (x *SearchIndexResponse) Reset()
- func (x *SearchIndexResponse) String() string
- func (m *SearchIndexResponse) UnmarshalJSON(b []byte) error
- type SearchProviderHandler
- type SearchProviderService
- type SearchRequest
- func (*SearchRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SearchRequest) GetPageSize() int32
- func (x *SearchRequest) GetPageToken() string
- func (x *SearchRequest) GetQuery() string
- func (x *SearchRequest) GetRef() *v0.Reference
- func (m *SearchRequest) MarshalJSON() ([]byte, error)
- func (*SearchRequest) ProtoMessage()
- func (x *SearchRequest) ProtoReflect() protoreflect.Message
- func (x *SearchRequest) Reset()
- func (x *SearchRequest) String() string
- func (m *SearchRequest) UnmarshalJSON(b []byte) error
- type SearchResponse
- func (*SearchResponse) Descriptor() ([]byte, []int)deprecated
- func (x *SearchResponse) GetMatches() []*v0.Match
- func (x *SearchResponse) GetNextPageToken() string
- func (x *SearchResponse) GetTotalMatches() int32
- func (m *SearchResponse) MarshalJSON() ([]byte, error)
- func (*SearchResponse) ProtoMessage()
- func (x *SearchResponse) ProtoReflect() protoreflect.Message
- func (x *SearchResponse) Reset()
- func (x *SearchResponse) String() string
- func (m *SearchResponse) UnmarshalJSON(b []byte) error
Constants ¶
This section is empty.
Variables ¶
var File_ocis_services_search_v0_search_proto protoreflect.FileDescriptor
var IndexSpaceRequestJSONMarshaler = new(jsonpb.Marshaler)
IndexSpaceRequestJSONMarshaler describes the default jsonpb.Marshaler used by all instances of IndexSpaceRequest. This struct is safe to replace or modify but should not be done so concurrently.
var IndexSpaceRequestJSONUnmarshaler = new(jsonpb.Unmarshaler)
IndexSpaceRequestJSONUnmarshaler describes the default jsonpb.Unmarshaler used by all instances of IndexSpaceRequest. This struct is safe to replace or modify but should not be done so concurrently.
var IndexSpaceResponseJSONMarshaler = new(jsonpb.Marshaler)
IndexSpaceResponseJSONMarshaler describes the default jsonpb.Marshaler used by all instances of IndexSpaceResponse. This struct is safe to replace or modify but should not be done so concurrently.
var IndexSpaceResponseJSONUnmarshaler = new(jsonpb.Unmarshaler)
IndexSpaceResponseJSONUnmarshaler describes the default jsonpb.Unmarshaler used by all instances of IndexSpaceResponse. This struct is safe to replace or modify but should not be done so concurrently.
var SearchIndexRequestJSONMarshaler = new(jsonpb.Marshaler)
SearchIndexRequestJSONMarshaler describes the default jsonpb.Marshaler used by all instances of SearchIndexRequest. This struct is safe to replace or modify but should not be done so concurrently.
var SearchIndexRequestJSONUnmarshaler = new(jsonpb.Unmarshaler)
SearchIndexRequestJSONUnmarshaler describes the default jsonpb.Unmarshaler used by all instances of SearchIndexRequest. This struct is safe to replace or modify but should not be done so concurrently.
var SearchIndexResponseJSONMarshaler = new(jsonpb.Marshaler)
SearchIndexResponseJSONMarshaler describes the default jsonpb.Marshaler used by all instances of SearchIndexResponse. This struct is safe to replace or modify but should not be done so concurrently.
var SearchIndexResponseJSONUnmarshaler = new(jsonpb.Unmarshaler)
SearchIndexResponseJSONUnmarshaler describes the default jsonpb.Unmarshaler used by all instances of SearchIndexResponse. This struct is safe to replace or modify but should not be done so concurrently.
var SearchRequestJSONMarshaler = new(jsonpb.Marshaler)
SearchRequestJSONMarshaler describes the default jsonpb.Marshaler used by all instances of SearchRequest. This struct is safe to replace or modify but should not be done so concurrently.
var SearchRequestJSONUnmarshaler = new(jsonpb.Unmarshaler)
SearchRequestJSONUnmarshaler describes the default jsonpb.Unmarshaler used by all instances of SearchRequest. This struct is safe to replace or modify but should not be done so concurrently.
var SearchResponseJSONMarshaler = new(jsonpb.Marshaler)
SearchResponseJSONMarshaler describes the default jsonpb.Marshaler used by all instances of SearchResponse. This struct is safe to replace or modify but should not be done so concurrently.
var SearchResponseJSONUnmarshaler = new(jsonpb.Unmarshaler)
SearchResponseJSONUnmarshaler describes the default jsonpb.Unmarshaler used by all instances of SearchResponse. This struct is safe to replace or modify but should not be done so concurrently.
Functions ¶
func RegisterIndexProviderHandler ¶
func RegisterIndexProviderHandler(s server.Server, hdlr IndexProviderHandler, opts ...server.HandlerOption) error
func RegisterIndexProviderWeb ¶
func RegisterIndexProviderWeb(r chi.Router, i IndexProviderHandler, middlewares ...func(http.Handler) http.Handler)
func RegisterSearchProviderHandler ¶
func RegisterSearchProviderHandler(s server.Server, hdlr SearchProviderHandler, opts ...server.HandlerOption) error
func RegisterSearchProviderWeb ¶
func RegisterSearchProviderWeb(r chi.Router, i SearchProviderHandler, middlewares ...func(http.Handler) http.Handler)
Types ¶
type IndexProviderHandler ¶
type IndexProviderHandler interface {
Search(context.Context, *SearchIndexRequest, *SearchIndexResponse) error
}
type IndexProviderService ¶
type IndexProviderService interface {
Search(ctx context.Context, in *SearchIndexRequest, opts ...client.CallOption) (*SearchIndexResponse, error)
}
func NewIndexProviderService ¶
func NewIndexProviderService(name string, c client.Client) IndexProviderService
type IndexSpaceRequest ¶
type IndexSpaceRequest struct { SpaceId string `protobuf:"bytes,1,opt,name=space_id,json=spaceId,proto3" json:"space_id,omitempty"` UserId string `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // contains filtered or unexported fields }
func (*IndexSpaceRequest) Descriptor
deprecated
func (*IndexSpaceRequest) Descriptor() ([]byte, []int)
Deprecated: Use IndexSpaceRequest.ProtoReflect.Descriptor instead.
func (*IndexSpaceRequest) GetSpaceId ¶
func (x *IndexSpaceRequest) GetSpaceId() string
func (*IndexSpaceRequest) GetUserId ¶
func (x *IndexSpaceRequest) GetUserId() string
func (*IndexSpaceRequest) MarshalJSON ¶
func (m *IndexSpaceRequest) MarshalJSON() ([]byte, error)
MarshalJSON satisfies the encoding/json Marshaler interface. This method uses the more correct jsonpb package to correctly marshal the message.
func (*IndexSpaceRequest) ProtoMessage ¶
func (*IndexSpaceRequest) ProtoMessage()
func (*IndexSpaceRequest) ProtoReflect ¶
func (x *IndexSpaceRequest) ProtoReflect() protoreflect.Message
func (*IndexSpaceRequest) Reset ¶
func (x *IndexSpaceRequest) Reset()
func (*IndexSpaceRequest) String ¶
func (x *IndexSpaceRequest) String() string
func (*IndexSpaceRequest) UnmarshalJSON ¶
func (m *IndexSpaceRequest) UnmarshalJSON(b []byte) error
UnmarshalJSON satisfies the encoding/json Unmarshaler interface. This method uses the more correct jsonpb package to correctly unmarshal the message.
type IndexSpaceResponse ¶
type IndexSpaceResponse struct {
// contains filtered or unexported fields
}
func (*IndexSpaceResponse) Descriptor
deprecated
func (*IndexSpaceResponse) Descriptor() ([]byte, []int)
Deprecated: Use IndexSpaceResponse.ProtoReflect.Descriptor instead.
func (*IndexSpaceResponse) MarshalJSON ¶
func (m *IndexSpaceResponse) MarshalJSON() ([]byte, error)
MarshalJSON satisfies the encoding/json Marshaler interface. This method uses the more correct jsonpb package to correctly marshal the message.
func (*IndexSpaceResponse) ProtoMessage ¶
func (*IndexSpaceResponse) ProtoMessage()
func (*IndexSpaceResponse) ProtoReflect ¶
func (x *IndexSpaceResponse) ProtoReflect() protoreflect.Message
func (*IndexSpaceResponse) Reset ¶
func (x *IndexSpaceResponse) Reset()
func (*IndexSpaceResponse) String ¶
func (x *IndexSpaceResponse) String() string
func (*IndexSpaceResponse) UnmarshalJSON ¶
func (m *IndexSpaceResponse) UnmarshalJSON(b []byte) error
UnmarshalJSON satisfies the encoding/json Unmarshaler interface. This method uses the more correct jsonpb package to correctly unmarshal the message.
type SearchIndexRequest ¶
type SearchIndexRequest struct { // Optional. The maximum number of entries to return in the response PageSize int32 `protobuf:"varint,1,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` // Optional. A pagination token returned from a previous call to `Get` // that indicates from where search should continue PageToken string `protobuf:"bytes,2,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` Query string `protobuf:"bytes,3,opt,name=query,proto3" json:"query,omitempty"` Ref *v0.Reference `protobuf:"bytes,4,opt,name=ref,proto3" json:"ref,omitempty"` // contains filtered or unexported fields }
func (*SearchIndexRequest) Descriptor
deprecated
func (*SearchIndexRequest) Descriptor() ([]byte, []int)
Deprecated: Use SearchIndexRequest.ProtoReflect.Descriptor instead.
func (*SearchIndexRequest) GetPageSize ¶
func (x *SearchIndexRequest) GetPageSize() int32
func (*SearchIndexRequest) GetPageToken ¶
func (x *SearchIndexRequest) GetPageToken() string
func (*SearchIndexRequest) GetQuery ¶
func (x *SearchIndexRequest) GetQuery() string
func (*SearchIndexRequest) GetRef ¶
func (x *SearchIndexRequest) GetRef() *v0.Reference
func (*SearchIndexRequest) MarshalJSON ¶
func (m *SearchIndexRequest) MarshalJSON() ([]byte, error)
MarshalJSON satisfies the encoding/json Marshaler interface. This method uses the more correct jsonpb package to correctly marshal the message.
func (*SearchIndexRequest) ProtoMessage ¶
func (*SearchIndexRequest) ProtoMessage()
func (*SearchIndexRequest) ProtoReflect ¶
func (x *SearchIndexRequest) ProtoReflect() protoreflect.Message
func (*SearchIndexRequest) Reset ¶
func (x *SearchIndexRequest) Reset()
func (*SearchIndexRequest) String ¶
func (x *SearchIndexRequest) String() string
func (*SearchIndexRequest) UnmarshalJSON ¶
func (m *SearchIndexRequest) UnmarshalJSON(b []byte) error
UnmarshalJSON satisfies the encoding/json Unmarshaler interface. This method uses the more correct jsonpb package to correctly unmarshal the message.
type SearchIndexResponse ¶
type SearchIndexResponse struct { Matches []*v0.Match `protobuf:"bytes,1,rep,name=matches,proto3" json:"matches,omitempty"` // Token to retrieve the next page of results, or empty if there are no // more results in the list NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` TotalMatches int32 `protobuf:"varint,3,opt,name=total_matches,json=totalMatches,proto3" json:"total_matches,omitempty"` // contains filtered or unexported fields }
func (*SearchIndexResponse) Descriptor
deprecated
func (*SearchIndexResponse) Descriptor() ([]byte, []int)
Deprecated: Use SearchIndexResponse.ProtoReflect.Descriptor instead.
func (*SearchIndexResponse) GetMatches ¶
func (x *SearchIndexResponse) GetMatches() []*v0.Match
func (*SearchIndexResponse) GetNextPageToken ¶
func (x *SearchIndexResponse) GetNextPageToken() string
func (*SearchIndexResponse) GetTotalMatches ¶
func (x *SearchIndexResponse) GetTotalMatches() int32
func (*SearchIndexResponse) MarshalJSON ¶
func (m *SearchIndexResponse) MarshalJSON() ([]byte, error)
MarshalJSON satisfies the encoding/json Marshaler interface. This method uses the more correct jsonpb package to correctly marshal the message.
func (*SearchIndexResponse) ProtoMessage ¶
func (*SearchIndexResponse) ProtoMessage()
func (*SearchIndexResponse) ProtoReflect ¶
func (x *SearchIndexResponse) ProtoReflect() protoreflect.Message
func (*SearchIndexResponse) Reset ¶
func (x *SearchIndexResponse) Reset()
func (*SearchIndexResponse) String ¶
func (x *SearchIndexResponse) String() string
func (*SearchIndexResponse) UnmarshalJSON ¶
func (m *SearchIndexResponse) UnmarshalJSON(b []byte) error
UnmarshalJSON satisfies the encoding/json Unmarshaler interface. This method uses the more correct jsonpb package to correctly unmarshal the message.
type SearchProviderHandler ¶
type SearchProviderHandler interface { Search(context.Context, *SearchRequest, *SearchResponse) error IndexSpace(context.Context, *IndexSpaceRequest, *IndexSpaceResponse) error }
type SearchProviderService ¶
type SearchProviderService interface { Search(ctx context.Context, in *SearchRequest, opts ...client.CallOption) (*SearchResponse, error) IndexSpace(ctx context.Context, in *IndexSpaceRequest, opts ...client.CallOption) (*IndexSpaceResponse, error) }
func NewSearchProviderService ¶
func NewSearchProviderService(name string, c client.Client) SearchProviderService
type SearchRequest ¶
type SearchRequest struct { // Optional. The maximum number of entries to return in the response PageSize int32 `protobuf:"varint,1,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` // Optional. A pagination token returned from a previous call to `Get` // that indicates from where search should continue PageToken string `protobuf:"bytes,2,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` Query string `protobuf:"bytes,3,opt,name=query,proto3" json:"query,omitempty"` Ref *v0.Reference `protobuf:"bytes,4,opt,name=ref,proto3" json:"ref,omitempty"` // contains filtered or unexported fields }
func (*SearchRequest) Descriptor
deprecated
func (*SearchRequest) Descriptor() ([]byte, []int)
Deprecated: Use SearchRequest.ProtoReflect.Descriptor instead.
func (*SearchRequest) GetPageSize ¶
func (x *SearchRequest) GetPageSize() int32
func (*SearchRequest) GetPageToken ¶
func (x *SearchRequest) GetPageToken() string
func (*SearchRequest) GetQuery ¶
func (x *SearchRequest) GetQuery() string
func (*SearchRequest) GetRef ¶
func (x *SearchRequest) GetRef() *v0.Reference
func (*SearchRequest) MarshalJSON ¶
func (m *SearchRequest) MarshalJSON() ([]byte, error)
MarshalJSON satisfies the encoding/json Marshaler interface. This method uses the more correct jsonpb package to correctly marshal the message.
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
func (*SearchRequest) UnmarshalJSON ¶
func (m *SearchRequest) UnmarshalJSON(b []byte) error
UnmarshalJSON satisfies the encoding/json Unmarshaler interface. This method uses the more correct jsonpb package to correctly unmarshal the message.
type SearchResponse ¶
type SearchResponse struct { Matches []*v0.Match `protobuf:"bytes,1,rep,name=matches,proto3" json:"matches,omitempty"` // Token to retrieve the next page of results, or empty if there are no // more results in the list NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` TotalMatches int32 `protobuf:"varint,3,opt,name=total_matches,json=totalMatches,proto3" json:"total_matches,omitempty"` // contains filtered or unexported fields }
func (*SearchResponse) Descriptor
deprecated
func (*SearchResponse) Descriptor() ([]byte, []int)
Deprecated: Use SearchResponse.ProtoReflect.Descriptor instead.
func (*SearchResponse) GetMatches ¶
func (x *SearchResponse) GetMatches() []*v0.Match
func (*SearchResponse) GetNextPageToken ¶
func (x *SearchResponse) GetNextPageToken() string
func (*SearchResponse) GetTotalMatches ¶
func (x *SearchResponse) GetTotalMatches() int32
func (*SearchResponse) MarshalJSON ¶
func (m *SearchResponse) MarshalJSON() ([]byte, error)
MarshalJSON satisfies the encoding/json Marshaler interface. This method uses the more correct jsonpb package to correctly marshal the message.
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
func (*SearchResponse) UnmarshalJSON ¶
func (m *SearchResponse) UnmarshalJSON(b []byte) error
UnmarshalJSON satisfies the encoding/json Unmarshaler interface. This method uses the more correct jsonpb package to correctly unmarshal the message.