yitsushi / go-misskey

Misskey Go SDK
GNU General Public License v3.0
48 stars 12 forks source link

Admin/instance #110

Closed twocs closed 9 months ago

twocs commented 9 months ago

Requirements for Contributing

Added two Instance functions: get_table_stats: gives stats regarding the tables get_index_stats: gives info about the table indexes

Description of the Change

Followed the style of the project, adding Example and unit tests.

Issue or RFC

56

Possible Drawbacks

The response from /admin/get-index-stats is not documented, so I used the output of a vanilla installation of misskey to determine it.

Another drawback is that the size of get_index_stats.json is quite large. Can be trimmed down if needed.

Verification Process

Tested against a local Docker install of Misskey

Release Notes

coveralls commented 9 months ago

Coverage Status

coverage: 84.126% (+0.1%) from 84.009% when pulling d464263333db8f6c356feb297264c6673fe2f4fb on twocs:admin/instance into bd395ada4b6a474d734657aefc65ce6d5365bba0 on yitsushi:main.