Documentation
¶
Overview ¶
Package source is a pluggable event source abstraction (separate package to keep business registrations free of SDK transitive deps).
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ResetForTest ¶
func ResetForTest()
Types ¶
type FeishuSource ¶
func (*FeishuSource) Name ¶
func (s *FeishuSource) Name() string
func (*FeishuSource) Start ¶
func (s *FeishuSource) Start(ctx context.Context, eventTypes []string, emit func(*event.RawEvent), notify StatusNotifier) error
type Source ¶
type Source interface {
Name() string
Start(ctx context.Context, eventTypes []string, emit func(*event.RawEvent), notify StatusNotifier) error
}
Source produces events; emit MUST return quickly (anything slow stalls the SDK read loop).
type StatusNotifier ¶
type StatusNotifier func(state, detail string)
StatusNotifier surfaces SourceState* lifecycle states; detail is free-form context.
Click to show internal directories.
Click to hide internal directories.