Documentation ¶
Index ¶
- Variables
- func NewPorterClient() (porter.LibrarianPorterServiceClient, error)
- func WithPorterAddress(ctx context.Context, address string) context.Context
- func WithPorterFastFail(ctx context.Context) context.Context
- func WithPorterName(ctx context.Context, name string) context.Context
- type Porter
- type Searcher
- func (s *Searcher) DescribeID(ctx context.Context, id model.InternalID, desc interface{}, ...) error
- func (s *Searcher) NewBatchIDs(ctx context.Context, num int) ([]model.InternalID, error)
- func (s *Searcher) NewID(ctx context.Context) (model.InternalID, error)
- func (s *Searcher) SearchID(ctx context.Context, paging model.Paging, keyword string, index searcher.Index) ([]model.InternalID, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ProviderSet = wire.NewSet(NewSearcher, NewPorter, NewPorterClient)
Functions ¶
func NewPorterClient ¶
func NewPorterClient() (porter.LibrarianPorterServiceClient, error)
func WithPorterAddress ¶ added in v0.2.0
func WithPorterFastFail ¶ added in v0.2.0
Types ¶
type Porter ¶ added in v0.2.0
type Porter struct { porter.LibrarianPorterServiceClient // contains filtered or unexported fields }
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
Click to show internal directories.
Click to hide internal directories.