searchsvc

package
v0.12.0-rc2 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2020 License: GPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option func(*cfg)

func WithContainerSource

func WithContainerSource(v container.Source) Option

func WithKeyStorage

func WithKeyStorage(v *objutil.KeyStorage) Option

func WithLocalAddressSource

func WithLocalAddressSource(v network.LocalAddressSource) Option

func WithLocalStorage

func WithLocalStorage(v *localstore.Storage) Option

func WithNetworkMapSource

func WithNetworkMapSource(v netmap.Source) Option

func WithWorkerPool

func WithWorkerPool(v util.WorkerPool) Option

type Prm

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

func (*Prm) WithCommonPrm

func (p *Prm) WithCommonPrm(v *util.CommonPrm) *Prm

func (*Prm) WithContainerID

func (p *Prm) WithContainerID(v *container.ID) *Prm

func (*Prm) WithSearchQuery

func (p *Prm) WithSearchQuery(v query.Query) *Prm

type RelationSearcher

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

func NewLinkingSearcher

func NewLinkingSearcher(svc *Service) *RelationSearcher

func NewRightChildSearcher

func NewRightChildSearcher(svc *Service) *RelationSearcher

func (*RelationSearcher) SearchRelation

func (s *RelationSearcher) SearchRelation(ctx context.Context, addr *object.Address, prm *util.CommonPrm) (*object.ID, error)

type Response

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

func (*Response) IDList

func (r *Response) IDList() []*object.ID

type Service

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

func NewService

func NewService(opts ...Option) *Service

func (*Service) Search

func (p *Service) Search(ctx context.Context, prm *Prm) (*Streamer, error)

type Streamer

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

func (*Streamer) Recv

func (p *Streamer) Recv() (*Response, error)

Directories

Path Synopsis
v1

Jump to

Keyboard shortcuts

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