Changeset 549 in code for trunk/msgstore.go


Ignore:
Timestamp:
Jun 2, 2021, 6:32:11 PM (4 years ago)
Author:
contact
Message:

Implement CHATHISTORY TARGETS

References: https://github.com/ircv3/ircv3-specifications/pull/450

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/msgstore.go

    r516 r549  
    2222}
    2323
     24type chatHistoryTarget struct {
     25        Name          string
     26        LatestMessage time.Time
     27}
     28
    2429// chatHistoryMessageStore is a message store that supports chat history
    2530// operations.
     
    2732        messageStore
    2833
     34        // ListTargets lists channels and nicknames by time of the latest message.
     35        // It returns up to limit targets, starting from start and ending on end,
     36        // both excluded. end may be before or after start.
     37        ListTargets(network *network, start, end time.Time, limit int) ([]chatHistoryTarget, error)
    2938        // LoadBeforeTime loads up to limit messages before start down to end. The
    3039        // returned messages must be between and excluding the provided bounds.
Note: See TracChangeset for help on using the changeset viewer.