Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Gateway ¶
type Gateway struct {
// contains filtered or unexported fields
}
Gateway receives raw platform messages, deduplicates, debounces, and emits IngestedMessages.
func New ¶
func New(msgStore MessageStore, debounce time.Duration) *Gateway
New constructs a Gateway.
func (*Gateway) Dispatch ¶
func (g *Gateway) Dispatch(msg platform.InboundMessage)
Dispatch is called by a platform receiver for each inbound message. All seen-map and debounce-state mutations are protected by g.mu.
func (*Gateway) Out ¶
func (g *Gateway) Out() <-chan IngestedMessage
Out returns the channel of outgoing IngestedMessages.
type IngestedMessage ¶
type IngestedMessage struct {
MsgID string
SessionKey string
Platform string
Content string
ReplyTo platform.InboundMessage
}
IngestedMessage is a deduplicated, debounced, normalized message ready for routing.