hashdb

package
v0.0.0-...-122e2ea Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DB

type DB struct {
	*badger.DB
}

func Open

func Open(dir string) (_ *DB, err error)

func (*DB) Get

func (db *DB) Get(path string) (*File, error)

func (*DB) Save

func (db *DB) Save(path string, file File) error

type File

type File struct {
	ModTime int64
	Hash    []byte
}

func (File) Marshal

func (f File) Marshal() ([]byte, error)

func (*File) Unmarshal

func (f *File) Unmarshal(data []byte) error

Jump to

Keyboard shortcuts

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