Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DefaultPayloadFactoryRegistry ¶
type DefaultPayloadFactoryRegistry struct {
// contains filtered or unexported fields
}
DefaultPayloadFactoryRegistry is the default implementation of PayloadFactoryRegistry.
func NewPayloadRegistry ¶
func NewPayloadRegistry() *DefaultPayloadFactoryRegistry
NewPayloadRegistry creates a new instance of DefaultPayloadFactoryRegistry.
func (*DefaultPayloadFactoryRegistry) GetFactory ¶
func (r *DefaultPayloadFactoryRegistry) GetFactory(eventType string) (func() interface{}, error)
GetFactory retrieves the payload factory function for the given event type.
func (*DefaultPayloadFactoryRegistry) Register ¶
func (r *DefaultPayloadFactoryRegistry) Register(eventType string, factory func() interface{})
Register adds a payload factory function for the given event type.
Click to show internal directories.
Click to hide internal directories.