product

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 22, 2021 License: MIT Imports: 7 Imported by: 0

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
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL