storage

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2026 License: CC0-1.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DiskSink

type DiskSink struct {
	Dir string
}

func (DiskSink) Put

func (s DiskSink) Put(_ context.Context, key string, data []byte) (string, error)

type S3Sink

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

func NewS3Sink

func NewS3Sink(ctx context.Context) (*S3Sink, error)

func (*S3Sink) Put

func (s *S3Sink) Put(ctx context.Context, key string, data []byte) (string, error)

type Sink

type Sink interface {
	Put(ctx context.Context, key string, data []byte) (string, error)
}

Sink stores one rendered widget and returns the resulting location.

Jump to

Keyboard shortcuts

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