getsvc

package
v0.0.0-...-0ba0ddf Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2024 License: GPL-3.0 Imports: 28 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 WithInternalService

func WithInternalService(v *getsvc.Service) Option

func WithKeyStorage

func WithKeyStorage(ks *objutil.KeyStorage) Option

WithKeyStorage returns option to set local private key storage.

type Service

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

Service implements Get operation of Object service v2.

func NewService

func NewService(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 NeoFS API v2 compatible HEAD requests.

Jump to

Keyboard shortcuts

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