Documentation ¶
Index ¶
- type Repository
- func (r *Repository) Create(entity *entity.Schedule) error
- func (r *Repository) Get(id string) (*entity.Schedule, error)
- func (r *Repository) GetAllSubmittedIds() ([]*entity.Schedule, error)
- func (r *Repository) GetReceiverTransferByTransactionID(id string) (*entity.Schedule, error)
- func (r *Repository) UpdateStatusCompleted(txId string) error
- func (r *Repository) UpdateStatusFailed(txId string) 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(dbClient *gorm.DB) *Repository
func (*Repository) Get ¶
func (r *Repository) Get(id string) (*entity.Schedule, error)
Get Returns Schedule. Returns nil if not found
func (*Repository) GetAllSubmittedIds ¶
func (r *Repository) GetAllSubmittedIds() ([]*entity.Schedule, error)
func (*Repository) GetReceiverTransferByTransactionID ¶
func (r *Repository) GetReceiverTransferByTransactionID(id string) (*entity.Schedule, error)
func (*Repository) UpdateStatusCompleted ¶
func (r *Repository) UpdateStatusCompleted(txId string) error
func (*Repository) UpdateStatusFailed ¶
func (r *Repository) UpdateStatusFailed(txId string) error
Click to show internal directories.
Click to hide internal directories.