client

package
v0.2.11 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2024 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func WithPorterAddress added in v0.2.0

func WithPorterAddress(ctx context.Context, addresses []string) context.Context

func WithPorterFastFail added in v0.2.0

func WithPorterFastFail(ctx context.Context) context.Context

Types

type Porter added in v0.2.0

type Porter struct {
	porter.LibrarianPorterServiceClient
	// contains filtered or unexported fields
}

func NewPorter added in v0.2.0

func NewPorter(
	client porter.LibrarianPorterServiceClient,
	consul *conf.Consul,
	porter *conf.Porter,
) (*Porter, error)

func (*Porter) GetServiceAddresses added in v0.2.0

func (p *Porter) GetServiceAddresses(ctx context.Context) ([]string, error)

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, query 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