Documentation ¶
Index ¶
Constants ¶
View Source
const DefaultTimelineLimit = 20
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PresenceConsumer ¶
type PresenceMap ¶
type PresenceMap struct {
// contains filtered or unexported fields
}
set a unix timestamp of when it last saw the types this way it can filter based on time
type PresencePublisher ¶
type RequestPool ¶
RequestPool manages HTTP long-poll connections for /sync
func NewRequestPool ¶
func NewRequestPool( db storage.Database, cfg *config.SyncAPI, userAPI userapi.SyncUserAPI, rsAPI roomserverAPI.SyncRoomserverAPI, streams *streams.Streams, notifier *notifier.Notifier, producer PresencePublisher, consumer PresenceConsumer, enableMetrics bool, ) *RequestPool
NewRequestPool makes a new RequestPool
func (*RequestPool) OnIncomingKeyChangeRequest ¶
func (rp *RequestPool) OnIncomingKeyChangeRequest(req *http.Request, device *userapi.Device) util.JSONResponse
func (*RequestPool) OnIncomingSyncRequest ¶
func (rp *RequestPool) OnIncomingSyncRequest(req *http.Request, device *userapi.Device) util.JSONResponse
OnIncomingSyncRequest is called when a client makes a /sync request. This function MUST be called in a dedicated goroutine for this request. This function will block the goroutine until a response is ready, or it times out.
Click to show internal directories.
Click to hide internal directories.