patchsvc

package
v0.44.4 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2024 License: GPL-3.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service struct {
	*objectwriter.Config
	// contains filtered or unexported fields
}

Service implements Put operation of Object service v2.

func NewService

func NewService(cfg *objectwriter.Config,
	getSvc *getsvc.Service,
) *Service

NewService constructs Service instance from provided options.

Patch service can use the same objectwriter.Config initializied by Put service.

func (*Service) Patch

func (s *Service) Patch() (object.PatchObjectStream, error)

Patch calls internal service and returns v2 object streamer.

type Streamer

type Streamer struct {
	*objectwriter.Config
	// contains filtered or unexported fields
}

Streamer for the patch handler is a pipeline that merges two incoming streams of patches and original object payload chunks. The merged result is fed to Put stream target.

func (*Streamer) CloseAndRecv

func (s *Streamer) CloseAndRecv(ctx context.Context) (*objectV2.PatchResponse, error)

func (*Streamer) Send

func (s *Streamer) Send(ctx context.Context, req *objectV2.PatchRequest) error

Jump to

Keyboard shortcuts

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