Documentation ¶ Index ¶ type DiskSink func (s DiskSink) Put(_ context.Context, key string, data []byte) (string, error) type S3Sink func NewS3Sink(ctx context.Context) (*S3Sink, error) func (s *S3Sink) Put(ctx context.Context, key string, data []byte) (string, error) type Sink 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. Source Files ¶ View all Source files storage.go Click to show internal directories. Click to hide internal directories.