Documentation ¶
Index ¶
- func LogPublish(logger log.Logger, event interface{}, subjects []string, err error)
- func ResourceTypeToUUID(resourceType string) string
- type FlusherTimeoutOpt
- type LeadResourceTypeOpt
- type MarshalerFunc
- type MarshalerOpt
- type Option
- type Publisher
- func (p *Publisher) AddCloseFunc(f func())
- func (p *Publisher) Close()
- func (p *Publisher) Flush(ctx context.Context) error
- func (p *Publisher) GetLeadResourceType(event eventbus.Event) string
- func (p *Publisher) GetPublishSubject(owner string, event eventbus.Event) []string
- func (p *Publisher) Publish(ctx context.Context, topics []string, groupID, aggregateID string, ...) error
- func (p *Publisher) PublishData(subj string, data []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LogPublish ¶ added in v2.7.5
func ResourceTypeToUUID ¶ added in v2.22.0
Types ¶
type FlusherTimeoutOpt ¶
type FlusherTimeoutOpt struct {
// contains filtered or unexported fields
}
func WithFlusherTimeout ¶
func WithFlusherTimeout(flusherTimeout time.Duration) FlusherTimeoutOpt
type LeadResourceTypeOpt ¶ added in v2.22.0
type LeadResourceTypeOpt struct {
// contains filtered or unexported fields
}
func WithLeadResourceType ¶ added in v2.22.0
func WithLeadResourceType(regexFilter []*regexp.Regexp, filter client.LeadResourceTypeFilter, useUUID bool) LeadResourceTypeOpt
type MarshalerFunc ¶
MarshalerFunc marshal struct to bytes.
type MarshalerOpt ¶
type MarshalerOpt struct {
// contains filtered or unexported fields
}
func WithMarshaler ¶
func WithMarshaler(dataMarshaler MarshalerFunc) MarshalerOpt
type Publisher ¶
type Publisher struct {
// contains filtered or unexported fields
}
Publisher implements a eventbus.Publisher interface.
func (*Publisher) AddCloseFunc ¶
func (p *Publisher) AddCloseFunc(f func())
func (*Publisher) GetLeadResourceType ¶ added in v2.22.0
func (*Publisher) GetPublishSubject ¶ added in v2.22.0
Click to show internal directories.
Click to hide internal directories.