v0

package
v2.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 29, 2022 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_ocis_services_search_v0_search_proto protoreflect.FileDescriptor
View Source
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.

View Source
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.

View Source
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.

View Source
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.

View Source
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.

View Source
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.

View Source
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.

View Source
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.

View Source
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.

View Source
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.

View Source
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.

View Source
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 NewIndexProviderEndpoints

func NewIndexProviderEndpoints() []*api.Endpoint

func NewSearchProviderEndpoints

func NewSearchProviderEndpoints() []*api.Endpoint

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL