backup

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DefaultBackup = newBackup()
)

Functions

This section is empty.

Types

type Backup

type Backup interface {
	Write(filePath string, content []byte) error
	Read(filePath string) ([]byte, error)
}

type RawBackup

type RawBackup struct {
}

func (*RawBackup) Read

func (r *RawBackup) Read(filePath string) ([]byte, error)

func (*RawBackup) Write

func (r *RawBackup) Write(filePath string, content []byte) error

Jump to

Keyboard shortcuts

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