Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNoDiscount = errors.New("no discount for store")
Functions ¶
This section is empty.
Types ¶
type MongoRepository ¶
type MongoRepository struct {
// contains filtered or unexported fields
}
func NewMongoRepo ¶
func NewMongoRepo(ctx context.Context, connectionString string) (*MongoRepository, error)
func (MongoRepository) GetStoreDiscount ¶
type Repository ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶
func NewService(repo Repository) *Service
Click to show internal directories.
Click to hide internal directories.