storages

package
v0.5.6-beta Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2018 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Package storages contains implemented versions of the storage.FileStorage.

Index

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.

Jump to

Keyboard shortcuts

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