Documentation
¶
Overview ¶
Package ingress accepts verified inbound human events (§9.1, §9.2). Authorisation comes only from the adapter-verified account and user ids, matched against the declared channel bindings; message text is never consulted (A05). An event is acknowledged only after it is committed, and replays are deduplicated by the store (A09).
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Sink ¶
Sink is the connectors.IngressSink of one organisation.
func (*Sink) Accept ¶
func (s *Sink) Accept(ctx context.Context, connection string, ev connectors.InboundEvent) error
Accept implements connectors.IngressSink. Events that no binding authorises are dropped (nil is returned so the adapter does not redeliver them).
type Store ¶
type Store interface {
Organization(ctx context.Context, orgID string) (*store.Organization, error)
SeatByKey(ctx context.Context, orgID, key string) (*store.Seat, error)
IngestHuman(ctx context.Context, in store.HumanMessage) (*store.Ingested, error)
}
Store is the persistence the sink needs.
Click to show internal directories.
Click to hide internal directories.