pieceadder

package
v0.0.13 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2025 License: Apache-2.0, MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CurioAdder

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

Generates URLs by interacting with Curio

func New added in v0.0.13

func New(api types.PieceAPI, endpoint *url.URL) *CurioAdder

func (*CurioAdder) AddPiece

func (p *CurioAdder) AddPiece(ctx context.Context, digest multihash.Multihash, size uint64) (*url.URL, error)

type PieceAdder

type PieceAdder interface {
	AddPiece(ctx context.Context, digest multihash.Multihash, size uint64) (*url.URL, error)
}

Jump to

Keyboard shortcuts

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