localfs

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Storage

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

func NewStorage

func NewStorage(dirPath string) (*Storage, error)

func (*Storage) Read

func (s *Storage) Read(ctx context.Context, cid cid.Cid) ([]byte, error)

func (*Storage) Write

func (s *Storage) Write(ctx context.Context, content []byte, cidValue cid.Cid) error

Jump to

Keyboard shortcuts

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