Versions in this module Expand all Collapse all v0 v0.14.1 Jan 16, 2025 v0.14.0 Dec 18, 2024 Changes in this version + func Enable(cfg *config.Dendrite, cm *sqlutil.Connections, routers httputil.Routers, ...) error + type DB struct + func (p *DB) ChildMetadata(ctx context.Context, eventID string) (count int, hash []byte, explored bool, err error) + func (p *DB) ChildrenForParent(ctx context.Context, eventID, relType string, recentFirst bool) ([]eventInfo, error) + func (p *DB) MarkChildrenExplored(ctx context.Context, eventID string) error + func (p *DB) ParentForChild(ctx context.Context, eventID, relType string) (*eventInfo, error) + func (p *DB) StoreRelation(ctx context.Context, ev *types.HeaderedEvent) error + func (p *DB) UpdateChildMetadata(ctx context.Context, ev *types.HeaderedEvent) error + type Database interface + ChildMetadata func(ctx context.Context, eventID string) (count int, hash []byte, explored bool, err error) + ChildrenForParent func(ctx context.Context, eventID, relType string, recentFirst bool) ([]eventInfo, error) + MarkChildrenExplored func(ctx context.Context, eventID string) error + ParentForChild func(ctx context.Context, eventID, relType string) (*eventInfo, error) + StoreRelation func(ctx context.Context, ev *types.HeaderedEvent) error + UpdateChildMetadata func(ctx context.Context, ev *types.HeaderedEvent) error + func NewDatabase(conMan *sqlutil.Connections, dbOpts *config.DatabaseOptions) (Database, error) + type EventRelationshipRequest struct + Batch string + DepthFirst bool + Direction string + EventID string + IncludeChildren bool + IncludeParent bool + Limit int + MaxBreadth int + MaxDepth int + RecentFirst bool + RoomID string + func NewEventRelationshipRequest(body io.Reader) (*EventRelationshipRequest, error) + func (r *EventRelationshipRequest) Defaults() + type EventRelationshipResponse struct + Events []synctypes.ClientEvent + Limited bool + NextBatch string + type MSC2836EventRelationshipsResponse struct + ParsedAuthChain []gomatrixserverlib.PDU + ParsedEvents []gomatrixserverlib.PDU