store

package
v0.0.0-...-5f09953 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNotExists = errors.New("Requested object does not exist")

Functions

func Get

func Get(ctx context.Context, st Store, id string) ([]byte, error)

Types

type GetRequest

type GetRequest struct {
	Id   string
	Data []byte
	Err  error
}

type Store

type Store interface {
	Store(ctx context.Context, obj []byte) (string, error)
	GetObjects(ctx context.Context, gets []GetRequest)
	FetchAWSUsage(u *protocol.StoreUsage)
}

func InMemory

func InMemory() Store

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

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