package
0.0.0-20200203095255-5fd4925b358f
Repository: https://github.com/airwsw/gridfs.git
Documentation: pkg.go.dev

# Functions

NewBucket creates a GridFS bucket.

# Constants

DefaultBucketName is the default name of bucket.
255KiB.
255KiB.
512KiB.

# Variables

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.
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.
File represents an open file descriptor.
FileInfo represents an database file descriptor.