Documentation
¶
Index ¶
- type MessageRepo
- func (r *MessageRepo) Begin(ctx context.Context) (context.Context, error)
- func (r *MessageRepo) Commit(ctx context.Context) error
- func (r *MessageRepo) Delete(ctx context.Context, entity *models.Message) error
- func (r *MessageRepo) DeleteByID(ctx context.Context, ID string) error
- func (r *MessageRepo) FindByText(ctx context.Context, text string) ([]*models.Message, error)
- func (r *MessageRepo) Insert(ctx context.Context, entity *models.Message) error
- func (r *MessageRepo) LoadByID(ctx context.Context, ID string) (*models.Message, error)
- func (r *MessageRepo) Rollback(ctx context.Context) error
- func (r *MessageRepo) Update(ctx context.Context, entity *models.Message) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MessageRepo ¶
type MessageRepo struct {
// contains filtered or unexported fields
}
func NewMessageRepo ¶ added in v0.2.0
func NewMessageRepo(factory *depot.Factory) *MessageRepo
func (*MessageRepo) Commit ¶ added in v0.2.0
func (r *MessageRepo) Commit(ctx context.Context) error
func (*MessageRepo) DeleteByID ¶
func (r *MessageRepo) DeleteByID(ctx context.Context, ID string) error
func (*MessageRepo) FindByText ¶ added in v0.2.0
Click to show internal directories.
Click to hide internal directories.