Documentation ¶
Overview ¶
Package mongostore provides the mongodb store implementation.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
// Provider is the store provider name.
Provider = "mongo"
)
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(*Config)
Option is a store option.
func Collection ¶
Collection configures the used collection. Defaults to "letters".
func CreateIndexes ¶
CreateIndexes configures the store to create the indexes for the fields of the letters. By default, this option is set to true.
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store is the mongodb store.
func New ¶
New creates a mongodb store. By default, the store uses the "postdog" database and "letters" collection. You can configure the store with opts.
Click to show internal directories.
Click to hide internal directories.