Skip to content

Commit

Permalink
Merge branch 'hotfix/v1.2.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
ddspog committed May 4, 2018
2 parents 1621fd7 + ec3ce5a commit 58df2fa
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ The package can be used like this:
// handle the operations on MongoDB with a handler, use:
mongo.ConsumeDatabaseOnSession(func(db elements.Databaser) {
// Make db object available on handlers.
p := NewProductHandler()
p := handler.NewProductHandler()
p.Link(db)
// ... Do other operations.
Expand All @@ -40,7 +40,7 @@ Other option of usage is through the use of mongo.DatabaseSocket:
defer s.Close()
// Make db object available on handlers.
p := NewProductHandler()
p := handler.NewProductHandler()
p.Link(s.DB())
// ... Do other operations.
Expand All @@ -52,7 +52,7 @@ Or even through the concept of LinkedHandlers, as described later:
defer mongo.Disconnect()
// Create a linked handler
p, _ := NewLinkedProductHandler()
p, _ := handler.NewLinkedProductHandler()
// ... Do other operations.
Expand Down Expand Up @@ -201,7 +201,7 @@ has a basic constructor.
p = &ProductHandle{
DocumentV: product.New(),
}
p.Handle, err = NewLinkedHandle("products")
p.Handle, err = mongo.NewLinkedHandle("products")
}
All functions were made to be overridden and rewrite. First thing to do
Expand Down

0 comments on commit 58df2fa

Please sign in to comment.