backup

package
v0.1.0-alpha4 Latest Latest
Warning

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

Go to latest
Published: May 4, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package backup provides types responsible for performing backups of various aspects of the server.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BoltDB

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

BoltDB is an io.WriterTo implementation that writes the contents of a boltdb database.

func NewBoltDB

func NewBoltDB(db *bbolt.DB) *BoltDB

NewBoltDB returns a new instance of the BoltDB type which can be used to take backups of a boltdb database.

func (*BoltDB) WriteTo

func (b *BoltDB) WriteTo(writer io.Writer) (int64, error)

WriteTo writes the contents of the boltdb instance to the io.Writer implementation.

Jump to

Keyboard shortcuts

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