storage

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNotFound = os.ErrNotExist

Functions

func GenID

func GenID() string

func IsValidID

func IsValidID(value string) bool

func ShardedPath added in v0.2.0

func ShardedPath(value string) string

Types

type Storage

type Storage interface {
	Get(ctx context.Context, uid string) (io.ReadCloser, error)
	Set(ctx context.Context, uid string, content io.Reader) error
	Delete(ctx context.Context, uid string) error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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