Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterIndexerAPIServer ¶
func RegisterIndexerAPIServer(s *grpc.Server, srv IndexerAPIServer)
Types ¶
type IndexerAPIClient ¶
type IndexerAPIClient interface { // Index is used to submit content to be indexed by the lens system Index(ctx context.Context, in *request.Index, opts ...grpc.CallOption) (*response.Index, error) // Search is used to perform a configurable search against the Lens index Search(ctx context.Context, in *request.Search, opts ...grpc.CallOption) (*response.Results, error) }
IndexerAPIClient is the client API for IndexerAPI service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewIndexerAPIClient ¶
func NewIndexerAPIClient(cc *grpc.ClientConn) IndexerAPIClient
type IndexerAPIServer ¶
type IndexerAPIServer interface { // Index is used to submit content to be indexed by the lens system Index(context.Context, *request.Index) (*response.Index, error) // Search is used to perform a configurable search against the Lens index Search(context.Context, *request.Search) (*response.Results, error) }
IndexerAPIServer is the server API for IndexerAPI service.
Click to show internal directories.
Click to hide internal directories.