Documentation ¶
Overview ¶
Package muxHandle defines an interface which specifies database behaviour required by the multiplexer.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DBHandler ¶
type DBHandler interface { /* Collection is a method required by the multiplexer to obtain handles for persistent storage for Entities. */ Collection(name string, opts ...*options.CollectionOptions) *mongo.Collection }
DBHandler is an interface which defines the behaviour of a database handle required by the multiplexer.
This definition helps make the multiplexer testable, as well as constrain the multiplexer's capabilities towards the underlying database.
Click to show internal directories.
Click to hide internal directories.