Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotFound = errors.New("order not found")
ErrNotFound is returned when an order is missing.
View Source
var Module = fx.Provide(NewRepository)
Module provides the order repository to Fx.
Functions ¶
This section is empty.
Types ¶
type Repository ¶
type Repository struct {
// contains filtered or unexported fields
}
Repository encapsulates read/write access for orders.
func NewRepository ¶
func NewRepository(conns *database.Connections) *Repository
NewRepository wires a repository backed by configured database connections.
Click to show internal directories.
Click to hide internal directories.