package
1.17.3
Repository: https://github.com/mongodb/mongo-go-driver.git
Documentation: pkg.go.dev

# Functions

NewBucket creates a GridFS bucket.

# Constants

# Variables

ErrFileNotFound occurs if a user asks to download a file with a file ID that isn't found in the files collection.
ErrMissingChunkSize occurs when downloading a file if the files collection document is missing the "chunkSize" field.
ErrStreamClosed is an error returned if an operation is attempted on a closed/aborted stream.
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.

# Structs

Bucket represents a GridFS bucket.
DownloadStream is a io.Reader that can be used to download a file from a GridFS bucket.
File represents a file stored in GridFS.
Upload contains options to upload a file to a bucket.
UploadStream is used to upload a file in chunks.