r2

package
v0.0.0-...-d58ffde Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrFileNotFound = bridge.NewJSError("R2Error", "file not found")
)

Functions

func GetFile

func GetFile(r2Path string, bucket js.Value) ([]byte, error)

func GetImages

func GetImages(iconPath string, backgroundPath string, bucket js.Value) (icon image.Image, background image.Image, err error)

func NewMockBucket

func NewMockBucket(assetMapping map[string][]byte) js.Value

Types

type R2Parameters

type R2Parameters interface {
	R2PathIcon() string
	R2PathBackground() string
}

Jump to

Keyboard shortcuts

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