backup

package module
v0.0.0-...-601935d Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2019 License: MIT Imports: 2 Imported by: 0

README

go-backup

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrDatabaseIsNotOpen    = errors.New("go-backup: database is not open")
	ErrMethodNotImplemented = errors.New("go-backup: method not implemented")
)

Functions

func Close

func Close(backend DatabaseBackend)

Types

type Backup

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

func NewBackup

func NewBackup(backend DatabaseBackend) *Backup

func (*Backup) Append

func (b *Backup) Append(data []byte) error

func (*Backup) Extract

func (b *Backup) Extract() (err error, count int, arr [][]byte)

func (*Backup) GetCount

func (b *Backup) GetCount() (err error, count int)

func (*Backup) Pop

func (b *Backup) Pop() (err error, data []byte)

type DatabaseBackend

type DatabaseBackend interface {
	// contains filtered or unexported methods
}

func LoadDatabaseFQueueBackend

func LoadDatabaseFQueueBackend(dir string) (error, DatabaseBackend)

Jump to

Keyboard shortcuts

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