Documentation ¶
Index ¶
- type OutgoingQueues
- func (oqs *OutgoingQueues) Release(ctx context.Context, roomID, domain string)
- func (oqs *OutgoingQueues) RetrySend(ctx context.Context, roomID, domain string)
- func (oqs *OutgoingQueues) SendEDU(ctx context.Context, partition int32, e *gomatrixserverlib.EDU, domain string, ...) error
- func (oqs *OutgoingQueues) SendEvent(ctx context.Context, partition int32, ev *gomatrixserverlib.Event, ...) error
- type PartitionProcessor
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OutgoingQueues ¶
type OutgoingQueues struct {
// contains filtered or unexported fields
}
OutgoingQueues is a collection of queues for sending transactions to other matrix servers
func NewOutgoingQueues ¶
func NewOutgoingQueues( origin gomatrixserverlib.ServerName, fedClient *client.FedClientWrap, rpcCli roomserverapi.RoomserverRPCAPI, cfg *config.Fed, feddomains *common.FedDomains, rsRepo *repos.RoomServerCurStateRepo, recRepo *fedrepos.SendRecRepo, partitionProcessor PartitionProcessor, ) *OutgoingQueues
NewOutgoingQueues makes a new OutgoingQueues
func (*OutgoingQueues) Release ¶
func (oqs *OutgoingQueues) Release(ctx context.Context, roomID, domain string)
func (*OutgoingQueues) RetrySend ¶
func (oqs *OutgoingQueues) RetrySend(ctx context.Context, roomID, domain string)
type PartitionProcessor ¶
type PartitionProcessor interface { AssignRoomPartition(ctx context.Context, roomID, domain string, retryTime time.Duration, retryInterval time.Duration) (*fedrepos.RecordItem, bool) TryAssignRoomPartition(ctx context.Context, roomID, domain string) (*fedrepos.RecordItem, bool) UnassignRoomPartition(ctx context.Context, roomID, domain string) OnRoomDomainRelease(ctx context.Context, origin, roomID, domain string) HasAssgined(ctx context.Context, roomID, domain string) (*fedrepos.RecordItem, bool) }
Click to show internal directories.
Click to hide internal directories.