Add new attributes for instance
This commit is contained in:
parent
b9e51b2916
commit
faab8cdc27
11
instance.go
11
instance.go
|
@ -11,6 +11,17 @@ type Instance struct {
|
||||||
Title string `json:"title"`
|
Title string `json:"title"`
|
||||||
Description string `json:"description"`
|
Description string `json:"description"`
|
||||||
EMail string `json:"email"`
|
EMail string `json:"email"`
|
||||||
|
Version string `json:"version,omitempty"`
|
||||||
|
URLs map[string]string `json:"urls,omitempty"`
|
||||||
|
Stats InstanceStats `json:"stats,omitempty"`
|
||||||
|
Thumbnail string `json:"thumbnail,omitempty"`
|
||||||
|
}
|
||||||
|
|
||||||
|
// InstanceStats hold information for mastodon instance stats.
|
||||||
|
type InstanceStats struct {
|
||||||
|
UserCount int64 `json:"user_count"`
|
||||||
|
StatusCount int64 `json:"status_count"`
|
||||||
|
DomainCount int64 `json:"domain_count"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// GetInstance return Instance.
|
// GetInstance return Instance.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user