storage

package
v1.7.26 Latest Latest
Warning

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

Go to latest
Published: May 20, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init() error

func NewLocalStorage

func NewLocalStorage(basePath string) (*localStorage, error)

func NewS3Storage

func NewS3Storage(bucket, region, accessKey, secretKey, endpoint string) (*s3Storage, error)

Types

type Storage

type Storage interface {
	Write(ctx context.Context, key string, data []byte) error
	Read(ctx context.Context, key string) ([]byte, error)
}
var Store Storage

Jump to

Keyboard shortcuts

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