rangehashsvc

package
v0.12.1 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2020 License: GPL-3.0 Imports: 23 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 WithClientCache added in v0.12.1

func WithClientCache(v *cache.ClientCache) Option

func WithClientOptions added in v0.12.1

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

func WithContainerSource

func WithContainerSource(v container.Source) Option

func WithHeadService

func WithHeadService(v *headsvc.Service) 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 WithLogger added in v0.12.1

func WithLogger(l *logger.Logger) Option

func WithNetworkMapSource

func WithNetworkMapSource(v netmap.Source) Option

func WithRangeService

func WithRangeService(v *rangesvc.Service) Option

func WithWorkerPool

func WithWorkerPool(v util.WorkerPool) Option

type Prm

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

func (*Prm) FromRanges

func (p *Prm) FromRanges(v ...*object.Range) *Prm

func (*Prm) WithAddress

func (p *Prm) WithAddress(v *object.Address) *Prm

func (*Prm) WithChecksumType

func (p *Prm) WithChecksumType(typ pkg.ChecksumType) *Prm

func (*Prm) WithCommonPrm

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

type Response

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

func (*Response) Hashes

func (r *Response) Hashes() [][]byte

type Service

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

func NewService

func NewService(opts ...Option) *Service

func (*Service) GetRangeHash

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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