searchsvc

package
v0.13.1 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2020 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IDListWriter added in v0.13.0

type IDListWriter interface {
	WriteIDs([]*objectSDK.ID) error
}

IDListWriter is an interface of target component to write list of object identifiers.

type Option

type Option func(*cfg)

Option is a Service's constructor option.

func WithClientCache added in v0.12.1

func WithClientCache(v *cache.ClientCache) Option

WithClientCache returns option to set cache of remote node clients.

func WithClientOptions added in v0.12.1

func WithClientOptions(opts ...client.Option) Option

WithClientOptions returns option to specify options of remote node clients.

func WithLocalStorageEngine added in v0.13.0

func WithLocalStorageEngine(e *engine.StorageEngine) Option

WithLocalStorageEngine returns option to set local storage instance.

func WithLogger added in v0.12.1

func WithLogger(l *logger.Logger) Option

WithLogger returns option to specify Get service's logger.

func WithTraverserGenerator added in v0.13.0

func WithTraverserGenerator(t *util.TraverserGenerator) Option

WithTraverserGenerator returns option to set generator of placement traverser to get the objects from containers.

type Prm

type Prm struct {
	client.SearchObjectParams
	// contains filtered or unexported fields
}

Prm groups parameters of Get service call.

func (*Prm) SetCommonParameters added in v0.13.0

func (p *Prm) SetCommonParameters(common *util.CommonPrm)

SetCommonParameters sets common parameters of the operation.

func (*Prm) SetWriter added in v0.13.0

func (p *Prm) SetWriter(w IDListWriter)

SetWriter sets target component to write list of object identifiers.

type Service

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

Service is an utility serving requests of Object.Search service.

func New added in v0.13.0

func New(opts ...Option) *Service

New creates, initializes and returns utility serving Object.Get service requests.

func (*Service) Search

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

Search serves a request to select the objects.

Directories

Path Synopsis
v1

Jump to

Keyboard shortcuts

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