Documentation ¶
Index ¶
- type CustomerCacheRepository
- func (r CustomerCacheRepository) Add(ctx context.Context, customerID, name, smsNumber string) error
- func (r CustomerCacheRepository) Find(ctx context.Context, customerID string) (*models.Customer, error)
- func (r CustomerCacheRepository) UpdateSmsNumber(ctx context.Context, customerID, smsNumber string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CustomerCacheRepository ¶
type CustomerCacheRepository struct {
// contains filtered or unexported fields
}
func NewCustomerCacheRepository ¶
func NewCustomerCacheRepository(tableName string, db postgres.DB, fallback application.CustomerRepository) CustomerCacheRepository
func (CustomerCacheRepository) Add ¶
func (r CustomerCacheRepository) Add(ctx context.Context, customerID, name, smsNumber string) error
func (CustomerCacheRepository) UpdateSmsNumber ¶
func (r CustomerCacheRepository) UpdateSmsNumber(ctx context.Context, customerID, smsNumber string) error
Click to show internal directories.
Click to hide internal directories.