Help us shape the future of Go! Take the 2026 Go Developer Survey

getsvc

package
v0.46.12 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2025 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 *objectSvc.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