storage

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2023 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFileStorage

func NewFileStorage(fpath string) *fileStorage

func NewS3Backend

func NewS3Backend(bucket, key, region string) (*s3Storage, error)

Types

type FileLike

type FileLike interface {
	Path(ctx context.Context) (string, error)
	Load(ctx context.Context, v any) error
	Save(ctx context.Context, v any) error
}

Jump to

Keyboard shortcuts

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