Documentation ¶
Index ¶
- type StubOnePhaseCommitProtocol
- type StubSubscriber
- func (s StubSubscriber[Ent, ID]) Handle(ctx context.Context, event interface{}) error
- func (s StubSubscriber[Ent, ID]) HandleCreateEvent(ctx context.Context, event frameless.CreateEvent[Ent]) error
- func (s StubSubscriber[Ent, ID]) HandleDeleteAllEvent(ctx context.Context, event frameless.DeleteAllEvent) error
- func (s StubSubscriber[Ent, ID]) HandleDeleteByIDEvent(ctx context.Context, event frameless.DeleteByIDEvent[ID]) error
- func (s StubSubscriber[Ent, ID]) HandleError(ctx context.Context, err error) error
- func (s StubSubscriber[Ent, ID]) HandleUpdateEvent(ctx context.Context, event frameless.UpdateEvent[Ent]) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type StubOnePhaseCommitProtocol ¶
type StubOnePhaseCommitProtocol struct { frameless.OnePhaseCommitProtocol BeginTxFunc func(ctx context.Context) (context.Context, error) CommitTxFunc func(ctx context.Context) error RollbackTxFunc func(ctx context.Context) error }
func (*StubOnePhaseCommitProtocol) CommitTx ¶
func (spy *StubOnePhaseCommitProtocol) CommitTx(ctx context.Context) error
func (*StubOnePhaseCommitProtocol) RollbackTx ¶
func (spy *StubOnePhaseCommitProtocol) RollbackTx(ctx context.Context) error
type StubSubscriber ¶
type StubSubscriber[Ent any, ID any] struct { HandleFunc func(ctx context.Context, event interface{}) error ErrorFunc func(ctx context.Context, err error) error }
func (StubSubscriber[Ent, ID]) Handle ¶
func (s StubSubscriber[Ent, ID]) Handle(ctx context.Context, event interface{}) error
func (StubSubscriber[Ent, ID]) HandleCreateEvent ¶ added in v0.53.0
func (s StubSubscriber[Ent, ID]) HandleCreateEvent(ctx context.Context, event frameless.CreateEvent[Ent]) error
func (StubSubscriber[Ent, ID]) HandleDeleteAllEvent ¶ added in v0.53.0
func (s StubSubscriber[Ent, ID]) HandleDeleteAllEvent(ctx context.Context, event frameless.DeleteAllEvent) error
func (StubSubscriber[Ent, ID]) HandleDeleteByIDEvent ¶ added in v0.53.0
func (s StubSubscriber[Ent, ID]) HandleDeleteByIDEvent(ctx context.Context, event frameless.DeleteByIDEvent[ID]) error
func (StubSubscriber[Ent, ID]) HandleError ¶ added in v0.55.0
func (s StubSubscriber[Ent, ID]) HandleError(ctx context.Context, err error) error
func (StubSubscriber[Ent, ID]) HandleUpdateEvent ¶ added in v0.53.0
func (s StubSubscriber[Ent, ID]) HandleUpdateEvent(ctx context.Context, event frameless.UpdateEvent[Ent]) error
Click to show internal directories.
Click to hide internal directories.