v2

package
v0.58.0 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2026 License: GPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMessageHeaderSource

func NewMessageHeaderSource(opts ...Option) (eacl.TypedHeaderSource, error)

Types

type HeaderSource added in v0.41.0

type HeaderSource interface {
	// Head returns object (may be with or be without payload) by its address.
	Head(ctx context.Context, addr oid.Address) (*object.Object, error)
}

HeaderSource represents a source of the object headers.

type ObjectStorage

type ObjectStorage interface {
	Head(ctx context.Context, addr oid.Address) (*object.Object, error)
}

type Option

type Option func(*cfg)

func WithCID added in v0.28.2

func WithCID(v cid.ID) Option

func WithContext added in v0.54.0

func WithContext(ctx context.Context) Option

func WithHeaderSource added in v0.41.0

func WithHeaderSource(hs HeaderSource) Option

func WithLocalObjectStorage

func WithLocalObjectStorage(v *engine.StorageEngine) Option

func WithOID added in v0.28.2

func WithOID(v oid.ID) Option

func WithObjectHeaderBinary added in v0.52.0

func WithObjectHeaderBinary(b []byte) Option

func WithObjectStorage

func WithObjectStorage(v ObjectStorage) Option

func WithServiceRequest

func WithServiceRequest(v Request) Option

func WithServiceResponse

func WithServiceResponse(resp Response, req Request) Option

type Request

type Request interface {
	GetMetaHeader() *session.RequestMetaHeader
}

type Response

type Response interface {
	GetMetaHeader() *session.ResponseMetaHeader
}

Jump to

Keyboard shortcuts

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