store

package
v0.0.0-...-34cbb95 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2024 License: BSD-3-Clause Imports: 11 Imported by: 1

Documentation

Overview

Stores and retrieves jsfiddles in Google Storage.

Index

Constants

View Source
const (
	JSFIDDLE_STORAGE_BUCKET = "skia-jsfiddle"
)

Variables

This section is empty.

Functions

func New

func New(ctx context.Context, local bool) (*store, error)

New creates a new store.

local - True if running locally.

Types

type Store

type Store interface {
	// PutCode writes the code to Google Storage.
	// Returns the fiddleHash.
	PutCode(code, fiddleType string) (string, error)

	// GetCode reads the code from Google Storage.
	// Returns the code.
	GetCode(hash, fiddleType string) (string, error)
}

Store is used to read and write user code and media to and from Google Storage.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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