Documentation ¶
Index ¶
- type OrderQuery
- type OrderQueryImpl
- func (o *OrderQueryImpl) CreateOrder(c context.Context, tx pgx.Tx, req *pb.Order) (*pb.Order, error)
- func (o *OrderQueryImpl) GetOrderDetails(c context.Context, fil *pb.GetOrderFilter) (*pb.GetOrderResponse, error)
- func (o *OrderQueryImpl) GetOrders(c context.Context, req *pb.GetOrdersRequest) (*pb.GetOrderResponse, error)
- func (o *OrderQueryImpl) SendOrder(c context.Context, tx pgx.Tx, req *pb.SendOrderRequest, ...) error
- func (o *OrderQueryImpl) UpdateOrder(c context.Context, tx pgx.Tx, order *pb.Order) (*pb.Order, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OrderQuery ¶
type OrderQuery interface { CreateOrder(c context.Context, tx pgx.Tx, order *pb.Order) (*pb.Order, error) GetOrderDetails(c context.Context, req *pb.GetOrderFilter) (*pb.GetOrderResponse, error) GetOrders(c context.Context, req *pb.GetOrdersRequest) (*pb.GetOrderResponse, error) UpdateOrder(c context.Context, tx pgx.Tx, order *pb.Order) (*pb.Order, error) SendOrder(c context.Context, tx pgx.Tx, req *pb.SendOrderRequest, status, paymentLink string) error }
func NewOrderQueryImpl ¶
func NewOrderQueryImpl(db *pgxpool.Pool) OrderQuery
type OrderQueryImpl ¶
type OrderQueryImpl struct {
// contains filtered or unexported fields
}
func (*OrderQueryImpl) CreateOrder ¶
func (*OrderQueryImpl) GetOrderDetails ¶
func (o *OrderQueryImpl) GetOrderDetails(c context.Context, fil *pb.GetOrderFilter) (*pb.GetOrderResponse, error)
func (*OrderQueryImpl) GetOrders ¶
func (o *OrderQueryImpl) GetOrders(c context.Context, req *pb.GetOrdersRequest) (*pb.GetOrderResponse, error)
func (*OrderQueryImpl) SendOrder ¶
func (o *OrderQueryImpl) SendOrder(c context.Context, tx pgx.Tx, req *pb.SendOrderRequest, status, paymentLink string) error
func (*OrderQueryImpl) UpdateOrder ¶
Click to show internal directories.
Click to hide internal directories.