Documentation ¶ Index ¶ type Storage func NewStorage(dirPath string) (*Storage, error) func (s *Storage) Read(ctx context.Context, cid cid.Cid) ([]byte, error) func (s *Storage) Write(ctx context.Context, content []byte, cidValue cid.Cid) error 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 Source Files ¶ View all Source files storage.go Click to show internal directories. Click to hide internal directories.