r2

package
v0.0.0-...-5888283 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type R2ObjectCacher

type R2ObjectCacher struct {
	R2Client cloudflare.Client
	Bucket   string
}

func (R2ObjectCacher) GetObject

func (r R2ObjectCacher) GetObject(ctx context.Context, key string) ([]byte, error)

func (R2ObjectCacher) PutObject

func (r R2ObjectCacher) PutObject(ctx context.Context, key string, obj io.Reader) error

Jump to

Keyboard shortcuts

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