Software /
code /
prosody
Comparison
doc/storage.tld @ 10838:f26f2ec33f1e
doc/storage: Add archive store map-like API
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Mon, 11 May 2020 22:32:28 +0200 |
parent | 9903:2c5546cc5c70 |
comparison
equal
deleted
inserted
replaced
10837:f23363380599 | 10838:f26f2ec33f1e |
---|---|
48 -- Array of dates which do have messages (Optional?) | 48 -- Array of dates which do have messages (Optional?) |
49 dates : ( self, string? ) -> ({ string }) | (nil, string) | 49 dates : ( self, string? ) -> ({ string }) | (nil, string) |
50 | 50 |
51 -- Map of counts per "with" field | 51 -- Map of counts per "with" field |
52 summary : ( self, string?, archive_query? ) -> ( { string : integer } ) | (nil, string) | 52 summary : ( self, string?, archive_query? ) -> ( { string : integer } ) | (nil, string) |
53 | |
54 -- Map-store API | |
55 get : ( self, string, string ) -> (stanza, number?, string?) | (nil, string) | |
56 set : ( self, string, string, stanza, number?, string? ) -> (boolean) | (nil, string) | |
53 end | 57 end |
54 | 58 |
55 -- This represents moduleapi | 59 -- This represents moduleapi |
56 interface module | 60 interface module |
57 -- If the first string is omitted then the name of the module is used | 61 -- If the first string is omitted then the name of the module is used |