varstore

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type VarInfo

type VarInfo interface {
	Key() string
	Size() int64
}

type VarReader

type VarReader interface {
	io.Reader
	io.Closer
	Size() int64
}

type VarStorage

type VarStorage interface {
	Store(ctx context.Context, key string, scope ...string) (io.WriteCloser, error)
	Retrieve(ctx context.Context, key string, scope ...string) (VarReader, error)
	List(ctx context.Context, scope ...string) ([]VarInfo, error)
	Delete(ctx context.Context, key string, scope ...string) error
	DeleteAllInScope(ctx context.Context, scope ...string) error
	io.Closer
}

func NewPostgresVarStorage

func NewPostgresVarStorage(database string) (VarStorage, error)

Jump to

Keyboard shortcuts

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