slumber
slumber copied to clipboard
Failed to use MongoDB
`MacBook-Pro:~ thiago$ go get github.com/grsouza/slumber
github.com/grsouza/slumber
projects/go/src/github.com/grsouza/slumber/main.go:59: cannot use db (type *mongodb.MongoDB) as type "github.com/sogko/slumber/domain".IDatabase in field value: *mongodb.MongoDB does not implement "github.com/sogko/slumber/domain".IDatabase (wrong type for Count method) have Count(string, "github.com/grsouza/slumber/domain".Query) (int, error) want Count(string, "github.com/sogko/slumber/domain".Query) (int, error) projects/go/src/github.com/grsouza/slumber/main.go:61: cannot use ctx (type *"github.com/grsouza/slumber/middlewares/context".Context) as type "github.com/sogko/slumber/domain".IContext in argument to "github.com/grsouza/slumber-users".NewResource: *"github.com/grsouza/slumber/middlewares/context".Context does not implement "github.com/sogko/slumber/domain".IContext (wrong type for GetCurrentUserCtx method) have GetCurrentUserCtx(*http.Request) "github.com/grsouza/slumber/domain".IUser want GetCurrentUserCtx(*http.Request) "github.com/sogko/slumber/domain".IUser projects/go/src/github.com/grsouza/slumber/main.go:67: cannot use db (type *mongodb.MongoDB) as type "github.com/sogko/slumber/domain".IDatabase in field value: *mongodb.MongoDB does not implement "github.com/sogko/slumber/domain".IDatabase (wrong type for Count method) have Count(string, "github.com/grsouza/slumber/domain".Query) (int, error) want Count(string, "github.com/sogko/slumber/domain".Query) (int, error) projects/go/src/github.com/grsouza/slumber/main.go:70: cannot use ctx (type *"github.com/grsouza/slumber/middlewares/context".Context) as type "github.com/sogko/slumber/domain".IContext in argument to "github.com/grsouza/slumber-sessions".NewResource: *"github.com/grsouza/slumber/middlewares/context".Context does not implement "github.com/sogko/slumber/domain".IContext (wrong type for GetCurrentUserCtx method) have GetCurrentUserCtx(*http.Request) "github.com/grsouza/slumber/domain".IUser want GetCurrentUserCtx(*http.Request) "github.com/sogko/slumber/domain".IUser projects/go/src/github.com/grsouza/slumber/main.go:82: cannot use sessionsResource (type *"github.com/grsouza/slumber-sessions".Resource) as type "github.com/grsouza/slumber/domain".IResource in argument to router.AddResources: *"github.com/grsouza/slumber-sessions".Resource does not implement "github.com/grsouza/slumber/domain".IResource (wrong type for Context method) have Context() "github.com/sogko/slumber/domain".IContext want Context() "github.com/grsouza/slumber/domain".IContext projects/go/src/github.com/grsouza/slumber/main.go:82: cannot use usersResource (type *"github.com/grsouza/slumber-users".Resource) as type "github.com/grsouza/slumber/domain".IResource in argument to router.AddResources: *"github.com/grsouza/slumber-users".Resource does not implement "github.com/grsouza/slumber/domain".IResource (wrong type for Context method) have Context() "github.com/sogko/slumber/domain".IContext want Context() "github.com/grsouza/slumber/domain".IContext`