Documentation ¶
Index ¶
- Variables
- func NewPorterClient(c *conf.Consul, p *conf.Porter, app *libapp.Settings) (porter.LibrarianPorterServiceClient, error)
- func WithPorterAddress(ctx context.Context, addresses []string) context.Context
- func WithPorterFastFail(ctx context.Context) 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, query 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 WithPorterAddress ¶ 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.