Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Repository ¶
type Repository interface {
Insert(entity *entities.Trace) (*entities.Trace, *errors.ApplicationError)
}
func NewRepository ¶
func NewRepository(collection *mongo.Collection) Repository
type Service ¶
type Service interface {
Insert(book *entities.TraceDTO) (*entities.Trace, *errors.ApplicationError)
}
func NewService ¶
func NewService(r Repository) Service
Click to show internal directories.
Click to hide internal directories.