getsvc

package
v0.14.1 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2021 License: GPL-3.0 Imports: 13 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 added in v0.13.0

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 added in v0.13.0

GetRange calls internal service and returns v2 payload range stream.

func (*Service) GetRangeHash added in v0.13.0

GetRangeHash calls internal service and returns v2 response.

func (*Service) Head added in v0.13.0

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