server

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2018 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(
	ctx context.Context,
	addr string,
	opts lens.ConfigOpts,
	cfg config.TemporalConfig,
	logger *zap.SugaredLogger,
) error

Run is used to create our API server

Types

type API

type API struct {
	// contains filtered or unexported fields
}

API is the Lens API server

func (*API) Index

func (as *API) Index(ctx context.Context, req *pbreq.Index) (*pbresp.Index, error)

Index is used to submit a request for something to be indexed by lens

func (*API) Search

func (as *API) Search(ctx context.Context, req *pbreq.Search) (*pbresp.Results, error)

Search is used to submit a simple search request against the lens index

Jump to

Keyboard shortcuts

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