DefaultEventBusConfig 默认配置
()
| 22 | |
| 23 | // DefaultEventBusConfig 默认配置 |
| 24 | func DefaultEventBusConfig() *EventBusConfig { |
| 25 | return &EventBusConfig{ |
| 26 | MaxTimelineSize: 10000, |
| 27 | MaxTimelineAge: 1 * time.Hour, |
| 28 | CleanupInterval: 5 * time.Minute, |
| 29 | EnableArchive: false, |
| 30 | } |
| 31 | } |
| 32 | |
| 33 | // EventBus 三通道事件总线 |
| 34 | type EventBus struct { |
no outgoing calls
no test coverage detected