pinner

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package pinner implements an in-memory IPFS pinner.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MemoryPinner

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

MemoryPinner adds a message cid to its memory. It can be used only in local testing, when localfs implementation is used for message storage

func NewMemoryPinner

func NewMemoryPinner() *MemoryPinner

NewMemoryPinner initializes memory pinner which implements sentinel.Pinner interface.

func (*MemoryPinner) Pin

func (l *MemoryPinner) Pin(ctx context.Context, cid cid.Cid) error

Pin adds cid to local pins index. It might be used to debug pinning logic.

Jump to

Keyboard shortcuts

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