Documentation ¶
Index ¶
- type TransactionHandler
- func (t TransactionHandler) CreateTransaction(ctx context.Context, req *transactionPb.Transaction) (*transactionPb.GeneralResponse, error)
- func (t TransactionHandler) DeleteTransaction(ctx context.Context, req *transactionPb.GeneralIdRequest) (*transactionPb.GeneralResponse, error)
- func (t TransactionHandler) GetListTransaction(ctx context.Context, req *transactionPb.GeneralFilter) (*transactionPb.TransactionList, error)
- func (t TransactionHandler) GetTransaction(ctx context.Context, req *transactionPb.GeneralIdRequest) (*transactionPb.Transaction, error)
- func (t TransactionHandler) UpdateTransaction(ctx context.Context, req *transactionPb.Transaction) (*transactionPb.GeneralResponse, error)
- type TransactionHandlerFactory
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TransactionHandler ¶
type TransactionHandler struct {
// contains filtered or unexported fields
}
func (TransactionHandler) CreateTransaction ¶
func (t TransactionHandler) CreateTransaction(ctx context.Context, req *transactionPb.Transaction) (*transactionPb.GeneralResponse, error)
func (TransactionHandler) DeleteTransaction ¶
func (t TransactionHandler) DeleteTransaction(ctx context.Context, req *transactionPb.GeneralIdRequest) (*transactionPb.GeneralResponse, error)
func (TransactionHandler) GetListTransaction ¶
func (t TransactionHandler) GetListTransaction(ctx context.Context, req *transactionPb.GeneralFilter) (*transactionPb.TransactionList, error)
func (TransactionHandler) GetTransaction ¶
func (t TransactionHandler) GetTransaction(ctx context.Context, req *transactionPb.GeneralIdRequest) (*transactionPb.Transaction, error)
func (TransactionHandler) UpdateTransaction ¶
func (t TransactionHandler) UpdateTransaction(ctx context.Context, req *transactionPb.Transaction) (*transactionPb.GeneralResponse, error)
type TransactionHandlerFactory ¶
type TransactionHandlerFactory struct { L logger.Logger Srv *grpc.Server Transaction usecase.TransactionUsecaseInterface }
func (*TransactionHandlerFactory) Create ¶
func (prod *TransactionHandlerFactory) Create() *TransactionHandler
Source Files ¶
Click to show internal directories.
Click to hide internal directories.