replicator

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2025 License: Apache-2.0, MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Replicator

type Replicator interface {
	Replicate(context.Context, *replicahandler.TransferRequest) error
}

type Service

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

func New

func New(
	id principal.Signer,
	p pdp.PDP,
	b blobs.Blobs,
	c claims.Claims,
	rstore receiptstore.ReceiptStore,
	uploadConn client.Connection,
	db *sql.DB,
) (*Service, error)

func (*Service) Replicate

func (r *Service) Replicate(ctx context.Context, task *replicahandler.TransferRequest) error

func (*Service) Start

func (r *Service) Start(ctx context.Context) error

func (*Service) Stop

func (r *Service) Stop(_ context.Context) error

Jump to

Keyboard shortcuts

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