modulepackage
0.0.0-20200203095255-5fd4925b358f
Repository: https://github.com/airwsw/gridfs.git
Documentation: pkg.go.dev
# README
GridFS
Advanced GridFS driver.
# Packages
No description provided by the author
# Functions
NewBucket creates a GridFS bucket.
# Constants
DefaultBucketName is the default name of bucket.
255KiB.
StreamClosed equal 1 if stream closed.
StreamCreated equal 1 if stream buffer has been modified.
StreamModified equal 1 if stream buffer has been modified.
StreamRead equal 1 if stream can be read.
StreamWrite equal 1 if stream can be wrote.
# Variables
ErrFileInvalid indicates an invalid argument.
ErrFileNotFound occurs if a user asks to download a file with a file ID that isn't found in the files collection.
ErrStreamClosed is an error returned if an operation is attempted on a closed/aborted stream.
ErrStreamPermission is an error returned if an operation is attempted on a not readable/writable stream.
ErrStreamSeekOverflow is an error returned if seek past end of file.
ErrStreamSeekUnsupport is an error returned if unsupported whence value.
ErrWrongIndex is used when the chunk retrieved from the server does not have the expected index.
ErrWrongSize is used when the chunk retrieved from the server does not have the expected size.