Documentation
¶
Overview ¶
Package firestore implements the storage interface using Google Cloud Firestore.
Index ¶
Constants ¶
View Source
const ( // CollectionPosts is the name of the collection for posts. CollectionPosts = "posts" // CollectionAssets is the name of the collection for assets. CollectionAssets = "assets" )
Variables ¶
View Source
var ( // ErrTitleEmpty is returned when the title is empty ErrTitleEmpty = fmt.Errorf("%w: title cannot be empty", storage.ErrInvalidArgument) // ErrAuthorMissing is returned when the author is missing ErrAuthorMissing = fmt.Errorf("%w: author cannot be empty", storage.ErrInvalidArgument) // ErrIDMissing is returned when the ID is missing ErrIDMissing = fmt.Errorf("%w: id cannot be empty", storage.ErrInvalidArgument) // ErrVersionMissing is returned when the version is missing ErrVersionMissing = fmt.Errorf("%w: version cannot be empty", storage.ErrInvalidArgument) // ErrContentTypeEmpty is returned when the content type is empty ErrContentTypeEmpty = fmt.Errorf("%w: content type cannot be empty", storage.ErrInvalidArgument) // ErrFileNameMissing is returned when the file name is missing ErrFileNameMissing = fmt.Errorf("%w: file name cannot be empty", storage.ErrInvalidArgument) )
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.