Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Emitter ¶
type Emitter struct {
// contains filtered or unexported fields
}
func NewEmitter ¶
func NewEmitter(recorder Recorder, events provider.EventProvider) *Emitter
func (*Emitter) Emit ¶
func (e *Emitter) Emit(ctx context.Context, input RecordInput) (*catalogdomain.ActivityEvent, error)
type EntRecorder ¶
func (EntRecorder) RecordActivityEvent ¶
func (r EntRecorder) RecordActivityEvent(ctx context.Context, input RecordInput) (catalogdomain.ActivityEvent, error)
type RecordFunc ¶
type RecordFunc func(context.Context, RecordInput) (catalogdomain.ActivityEvent, error)
func (RecordFunc) RecordActivityEvent ¶
func (fn RecordFunc) RecordActivityEvent(ctx context.Context, input RecordInput) (catalogdomain.ActivityEvent, error)
type RecordInput ¶
type Recorder ¶
type Recorder interface {
RecordActivityEvent(ctx context.Context, input RecordInput) (catalogdomain.ActivityEvent, error)
}
Click to show internal directories.
Click to hide internal directories.