Documentation ¶
Index ¶
- type Repository
- func (r *Repository) CreateCustomerContext(ctx context.Context, firstName string, lastName string, ...) (int32, error)
- func (r *Repository) CustomerContext(ctx context.Context, id int32) (*proto.Customer, error)
- func (r *Repository) CustomersContext(ctx context.Context) ([]*proto.Customer, error)
- func (r *Repository) DeleteCustomerContext(ctx context.Context, id int32) error
- func (r *Repository) UpdateCustomerContext(ctx context.Context, customer *proto.Customer) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Repository ¶
type Repository struct {
// contains filtered or unexported fields
}
func NewRepository ¶
func NewRepository(database *postgres.Database) *Repository
func (*Repository) CreateCustomerContext ¶
func (*Repository) CustomerContext ¶
func (*Repository) CustomersContext ¶
func (*Repository) DeleteCustomerContext ¶
func (r *Repository) DeleteCustomerContext(ctx context.Context, id int32) error
func (*Repository) UpdateCustomerContext ¶
Click to show internal directories.
Click to hide internal directories.