Documentation ¶
Index ¶
- Constants
- func NewProjectCreatedEvent(ctx context.Context, ev *internalevent.ProjectCreatedEvent) *internalevent.Event
- func NewTaskCreatedEvent(ctx context.Context, ev *internalevent.TaskCreatedEvent) *internalevent.Event
- func NewUserCreatedEvent(ctx context.Context, ev *internalevent.UserCreatedEvent) *internalevent.Event
- func NewWriteKeyGeneratedEvent(ctx context.Context, ev *internalevent.WriteKeyGeneratedEvent) *internalevent.Event
- type CreateChannelFunc
- type EventMessage
- type Manager
- type RegisterEventChannel
Constants ¶
View Source
const ( EventNameWriteKeyGenerated = "manager.write_key.generated" EventNameUserCreated = "manager.user.created" EventNameProjectCreated = "manager.project.created" EventNameTaskCreated = "destination.task.created" )
event name pattern : PublisherServiceName.EntityName.Trigger.
Variables ¶
This section is empty.
Functions ¶
func NewProjectCreatedEvent ¶
func NewProjectCreatedEvent(ctx context.Context, ev *internalevent.ProjectCreatedEvent) *internalevent.Event
func NewTaskCreatedEvent ¶
func NewTaskCreatedEvent(ctx context.Context, ev *internalevent.TaskCreatedEvent) *internalevent.Event
func NewUserCreatedEvent ¶
func NewUserCreatedEvent(ctx context.Context, ev *internalevent.UserCreatedEvent) *internalevent.Event
func NewWriteKeyGeneratedEvent ¶
func NewWriteKeyGeneratedEvent(ctx context.Context, ev *internalevent.WriteKeyGeneratedEvent) *internalevent.Event
Types ¶
type CreateChannelFunc ¶
func NewCreateChannelFunc ¶
type EventMessage ¶
type EventMessage struct { Event *internalevent.Event Ack func() error }
func NewEventMessage ¶
func NewEventMessage(ev *internalevent.Event, ack func() error) EventMessage
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
func New ¶
func New(wg *sync.WaitGroup, done <-chan bool, adapter channel.Adapter, events map[internalevent.EventName]CreateChannelFunc) (Manager, error)
func (Manager) Consume ¶
func (h Manager) Consume(eventTypes ...internalevent.EventName) (<-chan EventMessage, error)
type RegisterEventChannel ¶
Click to show internal directories.
Click to hide internal directories.