index

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Index

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

Index idx

func NewIndex

func NewIndex(path string) (*Index, error)

NewIndex new idx

func (*Index) Close

func (i *Index) Close()

func (*Index) Exist

func (i *Index) Exist(cid string) (ok bool, err error)

Exist check if a cid exsit

func (*Index) FilterFileCid

func (i *Index) FilterFileCid(limit int) (ids []string, err error)

FIXME not works...

func (*Index) SetExist

func (i *Index) SetExist(cid string, ot ObjectType) error

SetExist cache a cid to filesystem

type ObjectType

type ObjectType int
const (
	ObjectTypeFile ObjectType = iota + 1
	ObjectTypeDir
	ObjectTypeMeta
)

Object Types

Jump to

Keyboard shortcuts

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