service

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2019 License: MIT Imports: 7 Imported by: 0

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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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