objectstores

package
v1.1.4 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Stop = errors.New("stop iterating")

Functions

func Register

func Register(name string, factory Factory)

Types

type Factory

type Factory func(string) (Store, error)

type Store

type Store interface {
	Add(context.Context, string, io.Reader) (string, error)
	Get(context.Context, string) (io.ReadCloser, error)
	Delete(context.Context, string) error
	IterateID(context.Context, func(string) error) error
}

func New

func New(name, conn string) (Store, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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