getsvc

package
v0.38.5 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2024 License: GPL-3.0 Imports: 40 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)

Option represents Service constructor option.

func WithLogger added in v0.38.0

func WithLogger(l *logger.Logger) Option

type Service

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

Service implements Get operation of Object service v2.

func NewService

func NewService(svc *getsvc.Service,
	keyStorage *objutil.KeyStorage,
	clientSource clientSource,
	netmapSource netmap.Source,
	announcedKeys netmap.AnnouncedKeys,
	contSource container.Source,
	opts ...Option,
) *Service

NewService constructs Service instance from provided options.

func (*Service) Get

Get calls internal service and returns v2 object stream.

func (*Service) GetRange

GetRange calls internal service and returns v2 payload range stream.

func (*Service) GetRangeHash

GetRangeHash calls internal service and returns v2 response.

func (*Service) Head

Head serves ForstFS API v2 compatible HEAD requests.

Jump to

Keyboard shortcuts

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