Documentation
¶
Index ¶
- type BaseEvent
- func (e *BaseEvent) GetHeader(key string) any
- func (e *BaseEvent) GetHeaders() map[string]any
- func (e *BaseEvent) GetID() string
- func (e *BaseEvent) GetSendAt() time.Time
- func (e *BaseEvent) Marshal() ([]byte, error)
- func (e *BaseEvent) SetHeader(key string, value any)
- func (e *BaseEvent) SetID(id string)
- func (e *BaseEvent) SetSendAt(sendAt time.Time)
- func (e *BaseEvent) String() string
- func (e *BaseEvent) Unmarshal(data []byte) error
- type Event
- type EventBus
- type PublishOption
- type PublishOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseEvent ¶
type BaseEvent struct {
ID string `json:"id"`
SendAt time.Time `json:"sendAt"`
Headers map[string]any `json:"headers"`
// contains filtered or unexported fields
}
func (*BaseEvent) GetHeaders ¶
type PublishOption ¶
type PublishOption func(*PublishOptions)
func WithRetry ¶
func WithRetry() PublishOption
type PublishOptions ¶
type PublishOptions struct {
// contains filtered or unexported fields
}
func (*PublishOptions) IsRetry ¶
func (o *PublishOptions) IsRetry() bool
Click to show internal directories.
Click to hide internal directories.