mirror of
https://github.com/superseriousbusiness/gotosocial
synced 2025-06-05 21:59:39 +02:00
[feature/performance] Store account stats in separate table (#2831)
* [feature/performance] Store account stats in separate table, get stats from remote * test account stats * add some missing increment / decrement calls * change stats function signatures * rejig logging a bit * use lock when updating stats
This commit is contained in:
@ -307,6 +307,12 @@ type CollectionIterator interface {
|
||||
|
||||
NextItem() TypeOrIRI
|
||||
PrevItem() TypeOrIRI
|
||||
|
||||
// TotalItems returns the total items
|
||||
// present in the collection, derived
|
||||
// from the totalItems property, or -1
|
||||
// if totalItems not present / readable.
|
||||
TotalItems() int
|
||||
}
|
||||
|
||||
// CollectionPageIterator represents the minimum interface for interacting with a wrapped
|
||||
@ -319,6 +325,12 @@ type CollectionPageIterator interface {
|
||||
|
||||
NextItem() TypeOrIRI
|
||||
PrevItem() TypeOrIRI
|
||||
|
||||
// TotalItems returns the total items
|
||||
// present in the collection, derived
|
||||
// from the totalItems property, or -1
|
||||
// if totalItems not present / readable.
|
||||
TotalItems() int
|
||||
}
|
||||
|
||||
// Flaggable represents the minimum interface for an activitystreams 'Flag' activity.
|
||||
|
Reference in New Issue
Block a user