Documentation ¶
Overview ¶
Package storages contains implemented versions of the storage.FileStorage.
Index ¶
- type MongoStorage
- func (mongoStorage *MongoStorage) Close() error
- func (mongoStorage *MongoStorage) Delete(deleteReference string) (err error)
- func (mongoStorage *MongoStorage) Initialize() (err error)
- func (mongoStorage *MongoStorage) Request(callReference string) (*storage.Entry, error)
- func (mongoStorage *MongoStorage) Store(entry *storage.Entry) (writer io.WriteCloser, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MongoStorage ¶
type MongoStorage struct { // MongoDB Database Database *mgo.Database // GridFS prefix GridFSPrefix string // GridFS prefix name GridFSChunkSize int // contains filtered or unexported fields }
MongoStorage is the FileStorage implementation using MongoDB GridFS.
func (*MongoStorage) Close ¶
func (mongoStorage *MongoStorage) Close() error
Close is the implementation of the Storage.Close method
func (*MongoStorage) Delete ¶
func (mongoStorage *MongoStorage) Delete(deleteReference string) (err error)
Delete is the implementation of the Storage.Delete method
func (*MongoStorage) Initialize ¶
func (mongoStorage *MongoStorage) Initialize() (err error)
Initialize is the implementation of the FileStorage.Initialize method.
func (*MongoStorage) Request ¶
func (mongoStorage *MongoStorage) Request(callReference string) (*storage.Entry, error)
Request is the implementation of the Storage.Request method
func (*MongoStorage) Store ¶
func (mongoStorage *MongoStorage) Store(entry *storage.Entry) (writer io.WriteCloser, err error)
Store is the implementation of the FileStorage.Store method.
Click to show internal directories.
Click to hide internal directories.