goblob

package module
v0.0.0-...-cf3afbe Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2014 License: GPL-3.0 Imports: 5 Imported by: 1

README

go-baby-steps

My first steps in golang

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WriteFile

func WriteFile(filename string, file *File) (err error)

Types

type BlobService

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

func NewBlobService

func NewBlobService(s *mgo.Session, db, fs string) *BlobService

func (*BlobService) Close

func (b *BlobService) Close()

func (*BlobService) Create

func (b *BlobService) Create(fn string) (*File, error)

func (*BlobService) Open

func (b *BlobService) Open(id string) (*File, error)

func (*BlobService) OpenName

func (b *BlobService) OpenName(fn string) (*File, error)

func (*BlobService) ReadFile

func (b *BlobService) ReadFile(path string) (blobId string, err error)

func (*BlobService) Remove

func (b *BlobService) Remove(id string) error

func (*BlobService) RemoveName

func (b *BlobService) RemoveName(fn string) error

func (*BlobService) WriteOutFile

func (b *BlobService) WriteOutFile(id string, path string) (err error)

type File

type File struct {
	*mgo.GridFile
}

func (*File) StringId

func (f *File) StringId() string

Jump to

Keyboard shortcuts

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