Documentation ¶
Index ¶
- type ClientConstructor
- type IDListWriter
- type Option
- func WithClientConstructor(v ClientConstructor) Option
- func WithKeyStorage(store *util.KeyStorage) Option
- func WithLocalStorageEngine(e *engine.StorageEngine) Option
- func WithLogger(l *logger.Logger) Option
- func WithNetMapSource(nmSrc netmap.Source) Option
- func WithTraverserGenerator(t *util.TraverserGenerator) Option
- type Prm
- type RequestForwarder
- type Service
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClientConstructor ¶
type ClientConstructor interface {
Get(client.NodeInfo) (client.MultiAddressClient, error)
}
type IDListWriter ¶
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 WithClientConstructor ¶
func WithClientConstructor(v ClientConstructor) Option
WithClientConstructor returns option to set constructor of remote node clients.
func WithKeyStorage ¶
func WithKeyStorage(store *util.KeyStorage) Option
WithKeyStorage returns option to set private key storage for session tokens and node key.
func WithLocalStorageEngine ¶
func WithLocalStorageEngine(e *engine.StorageEngine) Option
WithLocalStorageEngine returns option to set local storage instance.
func WithLogger ¶
WithLogger returns option to specify Get service's logger.
func WithNetMapSource ¶
WithNetMapSource returns option to set network map storage to receive current network state.
func WithTraverserGenerator ¶
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 {
// contains filtered or unexported fields
}
Prm groups parameters of Get service call.
func (*Prm) SetCommonParameters ¶
SetCommonParameters sets common parameters of the operation.
func (*Prm) SetRequestForwarder ¶
func (p *Prm) SetRequestForwarder(f RequestForwarder)
SetRequestForwarder sets callback for forwarding of the original request.
func (*Prm) SetWriter ¶
func (p *Prm) SetWriter(w IDListWriter)
SetWriter sets target component to write list of object identifiers.
func (*Prm) WithContainerID ¶
WithContainerID sets identifier of the container to search the objects.
func (*Prm) WithSearchFilters ¶
func (p *Prm) WithSearchFilters(fs object.SearchFilters)
WithSearchFilters sets search filters.
type RequestForwarder ¶
type RequestForwarder func(coreclient.NodeInfo, coreclient.MultiAddressClient) ([]oid.ID, error)
RequestForwarder is a callback for forwarding of the original Search requests.