localfs

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: 9 Imported by: 0

Documentation

Overview

Package localfs implements a content storage based on local file system.

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