file

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2021 License: MPL-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFile

func NewFile(dirPath string, logger log.Logger) store.File

Types

type File

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

func (*File) Delete

func (f *File) Delete(id int) error

func (*File) Insert

func (f *File) Insert(id int, data []byte) error

func (*File) SelectByID

func (f *File) SelectByID(id int) ([]byte, error)

Jump to

Keyboard shortcuts

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