store

package
v0.0.0-...-f679f10 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

type Store interface {
	// Get , Put and Delete for BadgerDb
	Get(key string) ([]byte, error)
	Put(key string, value []byte) error
	Delete(key string) error

	// Get , Put and Delete for SQLite
	InsertZipRecord(zipFileName, fileName string) error
	DeleteZipRecord(zipFileName string) error
}

func New

func New(logger *logrus.Logger,
	path string, inMem, logging bool) (Store, error)

Jump to

Keyboard shortcuts

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