localfile

package
v0.0.0-...-4eea697 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	BasePath string
	Depth    uint8
}

type Storage

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

func Init

func Init(config *Config) (*Storage, error)

func (*Storage) Add

func (s *Storage) Add(data []byte) (id *[32]byte, err error)

func (*Storage) AddWithID

func (s *Storage) AddWithID(id *[32]byte, data []byte) (err error)

func (*Storage) Clean

func (s *Storage) Clean() (err error)

func (*Storage) Get

func (s *Storage) Get(id *[32]byte) (data []byte, err error)

func (*Storage) ReplaceWithID

func (s *Storage) ReplaceWithID(id *[32]byte, data []byte) (err error)

Jump to

Keyboard shortcuts

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