compress

package
v0.5.6 Latest Latest
Warning

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

Go to latest
Published: May 20, 2025 License: MIT Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Options added in v0.3.1

type Options func(*Store) error

func WithContentEncoding added in v0.3.1

func WithContentEncoding(encoding store.ContentEncoding) Options

type Store

type Store struct {
	// contains filtered or unexported fields
}

func New

func New(s store.Store, opts ...Options) (*Store, error)

func (*Store) Copy added in v0.5.1

func (c *Store) Copy(ctx context.Context, srcKey, dstKey string) error

func (*Store) Delete added in v0.5.1

func (c *Store) Delete(ctx context.Context, key string) error

func (*Store) Load

func (c *Store) Load(ctx context.Context, key string) (io.ReadCloser, *store.Headers, error)

Load loads the data from the store It is the responsibility of the caller to close the returned reader

func (*Store) Store

func (c *Store) Store(ctx context.Context, key string, reader io.Reader, headers *store.Headers) error

Store stores the data in the store

Jump to

Keyboard shortcuts

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