Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewEventStore ¶
func NewEventStore[T exporter.ExportableEvent]() exporter.EventStore[T]
Types ¶
type Exporter ¶
type Exporter struct {
ExportedEvents []exporter.ExportableEvent
Err error
ExpectedNumberErr int
CurrentNumberErr int
Bulk bool
// contains filtered or unexported fields
}
func (*Exporter) GetExportedEvents ¶
func (m *Exporter) GetExportedEvents() []exporter.ExportableEvent
type ExporterDeprecated ¶
type ExporterDeprecated struct {
ExportedEvents []exporter.FeatureEvent
Err error
ExpectedNumberErr int
CurrentNumberErr int
Bulk bool
// contains filtered or unexported fields
}
ExporterDeprecated -----
func (*ExporterDeprecated) Export ¶
func (m *ExporterDeprecated) Export( _ context.Context, _ *log.Logger, events []exporter.FeatureEvent, ) error
func (*ExporterDeprecated) GetExportedEvents ¶
func (m *ExporterDeprecated) GetExportedEvents() []exporter.ExportableEvent
func (*ExporterDeprecated) IsBulk ¶
func (m *ExporterDeprecated) IsBulk() bool
type ExporterDeprecatedV2 ¶
type ExporterDeprecatedV2 struct {
ExportedEvents []exporter.FeatureEvent
Err error
ExpectedNumberErr int
CurrentNumberErr int
Bulk bool
// contains filtered or unexported fields
}
ExporterDeprecatedV2 -----
func (*ExporterDeprecatedV2) Export ¶
func (m *ExporterDeprecatedV2) Export( _ context.Context, _ *fflog.FFLogger, events []exporter.FeatureEvent, ) error
func (*ExporterDeprecatedV2) GetExportedEvents ¶
func (m *ExporterDeprecatedV2) GetExportedEvents() []exporter.ExportableEvent
func (*ExporterDeprecatedV2) IsBulk ¶
func (m *ExporterDeprecatedV2) IsBulk() bool
type ExporterMock ¶
type ExporterMock interface {
exporter.CommonExporter
GetExportedEvents() []exporter.ExportableEvent
}
type NotificationService ¶
type NotificationService struct {
NotifyCalls int
CloseCalled bool
// contains filtered or unexported fields
}
func (*NotificationService) Close ¶
func (n *NotificationService) Close()
func (*NotificationService) GetNotifyCalls ¶
func (n *NotificationService) GetNotifyCalls() int
func (*NotificationService) WasCloseCalled ¶
func (n *NotificationService) WasCloseCalled() bool
type Notifier ¶
type Notifier struct {
NotifyCalls int
// contains filtered or unexported fields
}
func (*Notifier) GetNotifyCalls ¶
type TrackingEventExporter ¶
type TrackingEventExporter struct {
ExportedEvents []exporter.TrackingEvent
Err error
ExpectedNumberErr int
CurrentNumberErr int
Bulk bool
// contains filtered or unexported fields
}
func (*TrackingEventExporter) Export ¶
func (m *TrackingEventExporter) Export( _ context.Context, _ *fflog.FFLogger, events []exporter.ExportableEvent, ) error
func (*TrackingEventExporter) GetExportedEvents ¶
func (m *TrackingEventExporter) GetExportedEvents() []exporter.ExportableEvent
func (*TrackingEventExporter) IsBulk ¶
func (m *TrackingEventExporter) IsBulk() bool
Source Files
¶
Directories
¶
| Path | Synopsis |
|---|---|
|
Package mockretriever provides mock implementations of various retriever interfaces for testing purposes in the go-feature-flag project.
|
Package mockretriever provides mock implementations of various retriever interfaces for testing purposes in the go-feature-flag project. |
Click to show internal directories.
Click to hide internal directories.