Document the int64 returned by LatestEventIDs

This commit is contained in:
Mark Haines 2017-06-27 14:55:51 +01:00
parent 37c8b91251
commit e8a55bb5a1

View file

@ -33,6 +33,7 @@ type RoomserverQueryAPIDatabase interface {
// Returns an error if there was a problem talking to the database.
RoomNID(roomID string) (types.RoomNID, error)
// Lookup event references for the latest events in the room and the current state snapshot.
// Returns the latest events, the current state and the maximum depth of the latest events plus 1.
// Returns an error if there was a problem talking to the database.
LatestEventIDs(roomNID types.RoomNID) ([]gomatrixserverlib.EventReference, types.StateSnapshotNID, int64, error)
// Lookup the numeric IDs for a list of events.