Add new attributes for instance

pull/74/head
Yamagishi Kazutoshi 2018-01-29 13:09:30 +09:00 committed by mattn
parent b9e51b2916
commit faab8cdc27
1 changed files with 15 additions and 4 deletions

View File

@ -7,10 +7,21 @@ import (
// Instance hold information for mastodon instance.
type Instance struct {
URI string `json:"uri"`
Title string `json:"title"`
Description string `json:"description"`
EMail string `json:"email"`
URI string `json:"uri"`
Title string `json:"title"`
Description string `json:"description"`
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.