Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Collection ¶
type Collection struct { Kind string Bolt *bolt.DB Mongo *mongo.Collection Context context.Context Cancel context.CancelFunc }
Collection struct
func NewCollection ¶
func NewCollection(kind string) Collection
NewCollection returns a Collection struct and connects it to the DB based on 'kind'
func (Collection) Query ¶
func (c Collection) Query(filter *Filter, result interface{}) error
Query runs the supplied filter against the configured storage
Click to show internal directories.
Click to hide internal directories.