blobsql

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2014 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewContext

func NewContext(parent context.Context, db meddler.DB) context.Context

Types

type Blobstore

type Blobstore struct {
	meddler.DB
}

func New

func New(db meddler.DB) *Blobstore

func (*Blobstore) Del

func (b *Blobstore) Del(path string) error

Del removes an object from the blobstore.

func (*Blobstore) Get

func (b *Blobstore) Get(path string) ([]byte, error)

Get retrieves an object from the blobstore.

func (*Blobstore) GetReader

func (b *Blobstore) GetReader(path string) (io.ReadCloser, error)

GetReader retrieves an object from the blobstore. It is the caller's responsibility to call Close on the ReadCloser when finished reading.

func (*Blobstore) Put

func (b *Blobstore) Put(path string, data []byte) error

Put inserts an object into the blobstore.

func (*Blobstore) PutReader

func (b *Blobstore) PutReader(path string, r io.Reader) error

PutReader inserts an object into the blobstore by consuming data from r until EOF.

Jump to

Keyboard shortcuts

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