Changeset 666 in code for trunk/msgstore.go
- Timestamp:
- Nov 3, 2021, 3:37:01 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/msgstore.go
r665 r666 17 17 // date. The message ID returned may not refer to a valid message, but can be 18 18 // used in history queries. 19 LastMsgID(network * network, entity string, t time.Time) (string, error)19 LastMsgID(network *Network, entity string, t time.Time) (string, error) 20 20 // LoadLatestID queries the latest non-event messages for the given network, 21 21 // entity and date, up to a count of limit messages, sorted from oldest to newest. 22 LoadLatestID(network * network, entity, id string, limit int) ([]*irc.Message, error)23 Append(network * network, entity string, msg *irc.Message) (id string, err error)22 LoadLatestID(network *Network, entity, id string, limit int) ([]*irc.Message, error) 23 Append(network *Network, entity string, msg *irc.Message) (id string, err error) 24 24 } 25 25 … … 38 38 // both excluded. end may be before or after start. 39 39 // If events is false, only PRIVMSG/NOTICE messages are considered. 40 ListTargets(network * network, start, end time.Time, limit int, events bool) ([]chatHistoryTarget, error)40 ListTargets(network *Network, start, end time.Time, limit int, events bool) ([]chatHistoryTarget, error) 41 41 // LoadBeforeTime loads up to limit messages before start down to end. The 42 42 // returned messages must be between and excluding the provided bounds. 43 43 // end is before start. 44 44 // If events is false, only PRIVMSG/NOTICE messages are considered. 45 LoadBeforeTime(network * network, entity string, start, end time.Time, limit int, events bool) ([]*irc.Message, error)45 LoadBeforeTime(network *Network, entity string, start, end time.Time, limit int, events bool) ([]*irc.Message, error) 46 46 // LoadBeforeTime loads up to limit messages after start up to end. The 47 47 // returned messages must be between and excluding the provided bounds. 48 48 // end is after start. 49 49 // If events is false, only PRIVMSG/NOTICE messages are considered. 50 LoadAfterTime(network * network, entity string, start, end time.Time, limit int, events bool) ([]*irc.Message, error)50 LoadAfterTime(network *Network, entity string, start, end time.Time, limit int, events bool) ([]*irc.Message, error) 51 51 } 52 52
Note:
See TracChangeset
for help on using the changeset viewer.