Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Repository ¶
type Repository interface { Find(id int) <-chan RepositoryResult Save(product *domain.Product) <-chan RepositoryResult Update(product *domain.Product) <-chan RepositoryResult FindAll() <-chan RepositoryResult Delete(id int) <-chan RepositoryResult }
func NewMongoRepository ¶
func NewMongoRepository(mongoServerUrl, mongoDb string, timeout int) (Repository, error)
type RepositoryResult ¶
type RepositoryResult struct { Result interface{} Error error }
Click to show internal directories.
Click to hide internal directories.