postgres

package
v0.0.0-...-76fafce Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2023 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 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) Find

func (r CustomerCacheRepository) Find(ctx context.Context, customerID string) (*models.Customer, error)

func (CustomerCacheRepository) UpdateSmsNumber

func (r CustomerCacheRepository) UpdateSmsNumber(ctx context.Context, customerID, smsNumber string) error

Jump to

Keyboard shortcuts

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