Add new attributes for instance

This commit is contained in:
Yamagishi Kazutoshi 2018-01-29 13:09:30 +09:00 committed by mattn
parent b9e51b2916
commit faab8cdc27

View File

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