Documentation ¶
Index ¶
- type Customer
- type PostgresRepository
- func (r PostgresRepository) Create(ctx context.Context, customer Customer) error
- func (r PostgresRepository) Delete(ctx context.Context, id uuid.UUID) error
- func (r PostgresRepository) GetByEmail(ctx context.Context, email string) (Customer, error)
- func (r PostgresRepository) GetByID(ctx context.Context, id uuid.UUID) (Customer, error)
- func (r PostgresRepository) Update(ctx context.Context, customer Customer) error
- type Repository
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PostgresRepository ¶
func (PostgresRepository) Create ¶
func (r PostgresRepository) Create(ctx context.Context, customer Customer) error
func (PostgresRepository) GetByEmail ¶
type Repository ¶
type Repository interface { Create(ctx context.Context, customer Customer) error GetByID(ctx context.Context, id uuid.UUID) (Customer, error) GetByEmail(ctx context.Context, email string) (Customer, error) Update(ctx context.Context, customer Customer) error Delete(ctx context.Context, id uuid.UUID) error }
Click to show internal directories.
Click to hide internal directories.