MCPcopy Create free account
hub / github.com/astercloud/aster / DefaultEventBusConfig

Function DefaultEventBusConfig

pkg/events/bus.go:24–31  ·  view source on GitHub ↗

DefaultEventBusConfig 默认配置

()

Source from the content-addressed store, hash-verified

22
23// DefaultEventBusConfig 默认配置
24func 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 三通道事件总线
34type EventBus struct {

Callers 2

NewEventBusFunction · 0.85
NewEventBusWithConfigFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected