Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrEventTypeNotFound = errors.New("event type not found")
)
Functions ¶
func RegisterChannelQueue ¶ added in v0.8.0
Types ¶
type ChannelQueue ¶
type ChannelQueue struct {
// contains filtered or unexported fields
}
func NewChannelQueue ¶
func NewChannelQueue() *ChannelQueue
func (ChannelQueue) Push ¶
func (q ChannelQueue) Push(e Event) error
type ChannelQueueConfig ¶ added in v0.10.2
type ChannelQueueConfig struct{}
func NewChannelQueueConfig ¶ added in v0.10.2
func NewChannelQueueConfig() *ChannelQueueConfig
func (*ChannelQueueConfig) Queue ¶ added in v0.10.2
func (c *ChannelQueueConfig) Queue() Queue
type EventService ¶ added in v0.8.0
type EventService struct { Queue Queue `inject:""` Logger *slog.Logger `inject:""` DP *di.DependencyProvider `inject:""` // contains filtered or unexported fields }
func Service ¶ added in v0.8.0
func Service(listeners ...*Listener) *EventService
func (*EventService) Name ¶ added in v0.8.0
func (s *EventService) Name() string
type Listener ¶ added in v0.8.0
type Listener struct {
// contains filtered or unexported fields
}
func NewListener ¶ added in v0.8.0
type QueueConfiger ¶ added in v0.10.2
type QueueConfiger interface {
QueueConfig() Config
}
Click to show internal directories.
Click to hide internal directories.