Documentation ¶
Index ¶
- func WriteFile(filename string, file *File) (err error)
- type BlobService
- func (b *BlobService) Close()
- func (b *BlobService) Create(fn string) (*File, error)
- func (b *BlobService) Open(id string) (*File, error)
- func (b *BlobService) OpenName(fn string) (*File, error)
- func (b *BlobService) ReadFile(path string) (blobId string, err error)
- func (b *BlobService) Remove(id string) error
- func (b *BlobService) RemoveName(fn string) error
- func (b *BlobService) WriteOutFile(id string, path string) (err error)
- type File
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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) 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)
Click to show internal directories.
Click to hide internal directories.