Documentation ¶
Index ¶
- type Repository
- func (r *Repository) Create(message *entity.Message) error
- func (r *Repository) Exist(transferID, signature, hash string) (bool, error)
- func (r *Repository) Get(transferID string) ([]entity.Message, error)
- func (r *Repository) GetMessageWith(transferID, signature, hash string) (*entity.Message, 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) Exist ¶
func (r *Repository) Exist(transferID, signature, hash string) (bool, error)
func (*Repository) GetMessageWith ¶
func (r *Repository) GetMessageWith(transferID, signature, hash string) (*entity.Message, error)
Click to show internal directories.
Click to hide internal directories.