equal
deleted
inserted
replaced
8 package madon |
8 package madon |
9 |
9 |
10 import ( |
10 import ( |
11 "time" |
11 "time" |
12 ) |
12 ) |
|
13 |
|
14 // ActivityTime is a custom type for the time returned by instance/activity |
|
15 type ActivityTime struct { |
|
16 time.Time |
|
17 } |
13 |
18 |
14 // Client contains data for a madon client application |
19 // Client contains data for a madon client application |
15 type Client struct { |
20 type Client struct { |
16 Name string // Name of the client |
21 Name string // Name of the client |
17 ID string // Application ID |
22 ID string // Application ID |
225 // Tag represents a Mastodon tag entity |
230 // Tag represents a Mastodon tag entity |
226 type Tag struct { |
231 type Tag struct { |
227 Name string `json:"name"` |
232 Name string `json:"name"` |
228 URL string `json:"url"` |
233 URL string `json:"url"` |
229 } |
234 } |
|
235 |
|
236 // WeekActivity represents a Mastodon instance activity "week" entity |
|
237 type WeekActivity struct { |
|
238 Week ActivityTime `json:"week"` |
|
239 Statuses int64 `json:"statuses,string"` |
|
240 Logins int64 `json:"logins,string"` |
|
241 Registrations int64 `json:"registrations,string"` |
|
242 } |