persistence

package
v0.0.0-...-1a5a415 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PersistentStore

type PersistentStore interface {
	// Returns data stream.
	Load() ([]byte, error)

	// Returns modified time and its existence of the stream.
	// If the second returned value is false, the data does not exists.
	ModTime() (time.Time, bool, error)

	// Saves given data stream.
	Save(data []byte) error
}

func NewCompressedStore

func NewCompressedStore(store PersistentStore) PersistentStore

func NewFileStore

func NewFileStore(path string) PersistentStore

func NewS3Store

func NewS3Store(
	region string,
	bucketName string, key string,
) (PersistentStore, error)

Jump to

Keyboard shortcuts

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