Skip to content

Commit

Permalink
feat: enhance eventbus with service_event (#36)
Browse files Browse the repository at this point in the history
Co-authored-by: liqiankun.1111 <liqiankun.1111@bytedance.com>
  • Loading branch information
qiankunli and liqiankun1111 committed May 20, 2024
1 parent eb0f0ef commit de509f4
Show file tree
Hide file tree
Showing 5 changed files with 436 additions and 285 deletions.
3 changes: 2 additions & 1 deletion event.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ type SendType string

const (
SendTypeNormal SendType = "normal" // 普通事件
SendTypeFIFO SendType = "FIFO" // 保序事件,即事件以 Sender 的发送时间顺序被消费执行
SendTypeFIFO SendType = "FIFO" // 保序事件,即事件以 Sender 的发送时间顺序被消费执行,且前序事件执行失败时会阻塞后续事件执行
SendTypeLaxFIFO SendType = "LaxFIFO" // 保序事件,即事件以 Sender 的发送时间顺序被消费执行,但前序事件的执行成败不影响后续事件
SendTypeTransaction SendType = "transaction" // 事务事件
SendTypeDelay SendType = "delay" // 延时发送
)
Expand Down

0 comments on commit de509f4

Please sign in to comment.