mirror of
https://gitea.phreedom.club/localhost_frssoft/bloat.git
synced 2025-05-10 13:58:46 +00:00
Added page about instance
This commit is contained in:
parent
fe304f60e9
commit
7dd90ac015
7 changed files with 81 additions and 0 deletions
|
@ -17,6 +17,8 @@ type Instance struct {
|
|||
Stats *InstanceStats `json:"stats,omitempty"`
|
||||
Languages []string `json:"languages"`
|
||||
ContactAccount *Account `json:"account"`
|
||||
MaxTootChars *int64 `json:"max_toot_chars"`
|
||||
Pleroma *PleromaInstance `json:"pleroma"`
|
||||
}
|
||||
|
||||
// InstanceStats hold information for mastodon instance stats.
|
||||
|
@ -26,6 +28,16 @@ type InstanceStats struct {
|
|||
DomainCount int64 `json:"domain_count"`
|
||||
}
|
||||
|
||||
// For about instance if this Pleroma
|
||||
type PleromaInstance struct {
|
||||
MetaData MetaData `json:"metadata"`
|
||||
}
|
||||
|
||||
type MetaData struct {
|
||||
Features *[]string `json:"features"`
|
||||
}
|
||||
|
||||
|
||||
// GetInstance return Instance.
|
||||
func (c *Client) GetInstance(ctx context.Context) (*Instance, error) {
|
||||
var instance Instance
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue