posinfo

package
v0.24.1 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2024 License: Apache-2.0, MIT Imports: 2 Imported by: 0

README

go-ipfs-posinfo

standard-readme compliant GoDoc Build Status

Posinfo wraps offset information for ipfs filestore nodes

Table of Contents

Install

go get github.com/ipfs/go-ipfs-posinfo

Usage

See the GoDoc documentation

Contribute

PRs accepted.

Small note: If editing the README, please conform to the standard-readme specification.

License

MIT © Protocol Labs, Inc.

Documentation

Overview

Package posinfo wraps offset information used by ipfs filestore nodes

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FilestoreNode

type FilestoreNode struct {
	ipld.Node
	PosInfo *PosInfo
}

FilestoreNode is an ipld.Node which arries PosInfo with it allowing to map it directly to a filesystem object.

type PosInfo

type PosInfo struct {
	Offset   uint64
	FullPath string
	Stat     os.FileInfo // can be nil
}

PosInfo stores information about the file offset, its path and stat.

Jump to

Keyboard shortcuts

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