client

package
v0.1.11 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ProviderSet = wire.NewSet(NewSearcher)

Functions

This section is empty.

Types

type Searcher added in v0.1.7

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

func NewSearcher added in v0.1.7

func NewSearcher(
	client searcher.LibrarianSearcherServiceClient,
) *Searcher

func (*Searcher) DescribeID added in v0.1.7

func (s *Searcher) DescribeID(
	ctx context.Context,
	id model.InternalID,
	desc interface{},
	mode searcher.DescribeIDRequest_DescribeMode,
	index searcher.Index,
) error

func (*Searcher) NewBatchIDs added in v0.1.7

func (s *Searcher) NewBatchIDs(ctx context.Context, num int) ([]model.InternalID, error)

func (*Searcher) NewID added in v0.1.7

func (s *Searcher) NewID(ctx context.Context) (model.InternalID, error)

func (*Searcher) SearchID added in v0.1.7

func (s *Searcher) SearchID(
	ctx context.Context, paging model.Paging, keyword string, index searcher.Index,
) ([]model.InternalID, error)

Jump to

Keyboard shortcuts

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