Documentation ¶
Index ¶
Constants ¶
View Source
const ( DatabaseName string = "testdb" CollectionName string = "movies" )
Variables ¶
View Source
var (
DBError error
)
Functions ¶
This section is empty.
Types ¶
type ClientHelper ¶
type ClientHelper interface { Database(string) DatabaseHelper Connect(context.Context) error StartSession() (mongo.Session, error) CheckConnection(context.Context) error }
func NewClient ¶
func NewClient() (ClientHelper, error)
type CollectionHelper ¶
type DatabaseHelper ¶
type DatabaseHelper interface { Collection(name string) CollectionHelper Client() ClientHelper }
type MongoResults ¶ added in v1.2.0
type SingleResultHelper ¶
type SingleResultHelper interface {
Decode(v interface{}) error
}
Click to show internal directories.
Click to hide internal directories.