Documentation
¶
Index ¶
Constants ¶
View Source
const (
DefaultUri = "https://instances.social/api/1.0/instances/show"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
func (*Client) FetchInstanceInformation ¶ added in v0.4.0
type ErrorResponse ¶ added in v0.4.0
type ErrorResponse struct {
Error *Error `json:"error"`
}
type InstanceInformation ¶ added in v0.4.0
type InstanceInformation struct {
Id string `json:"id"`
Name string `json:"name"`
AddedAt time.Time `json:"added_at"`
UpdatedAt time.Time `json:"updated_at"`
CheckedAt time.Time `json:"checked_at"`
Uptime float64 `json:"uptime"`
Up bool `json:"up"`
Dead bool `json:"dead"`
Version string `json:"version"`
Ipv6 bool `json:"ipv6"`
HttpsScore int `json:"https_score"`
HttpsRank string `json:"https_rank"`
ObsScore int `json:"obs_score"`
ObsRank string `json:"obs_rank"`
Users int `json:"users"`
Statuses int `json:"statuses"`
Connections int `json:"connections"`
OpenRegistrations bool `json:"open_registrations"`
Thumbnail string `json:"thumbnail"`
ThumbnailProxy string `json:"thumbnail_proxy"`
ActiveUsers int `json:"active_users"`
}
Click to show internal directories.
Click to hide internal directories.