equal
deleted
inserted
replaced
3 Copyright 2017 Mikael Berthe |
3 Copyright 2017 Mikael Berthe |
4 |
4 |
5 Licensed under the MIT license. Please see the LICENSE file is this directory. |
5 Licensed under the MIT license. Please see the LICENSE file is this directory. |
6 */ |
6 */ |
7 |
7 |
8 package gondole |
8 package madon |
9 |
9 |
10 import ( |
10 import ( |
11 "time" |
11 "time" |
12 ) |
12 ) |
13 |
13 |
14 // Client contains data for a gondole client application |
14 // Client contains data for a madon client application |
15 type Client struct { |
15 type Client struct { |
16 Name string // Name of the client |
16 Name string // Name of the client |
17 ID string // Application ID |
17 ID string // Application ID |
18 Secret string // Application secret |
18 Secret string // Application secret |
19 APIBase string // API prefix URL |
19 APIBase string // API prefix URL |
21 |
21 |
22 UserToken *UserToken // User token |
22 UserToken *UserToken // User token |
23 } |
23 } |
24 |
24 |
25 /* |
25 /* |
26 Entities: |
26 Entities - Everything manipulated/returned by the API |
27 |
|
28 Everything manipulated/returned by the API |
|
29 */ |
27 */ |
30 |
28 |
31 // Account represents a Mastodon account entity |
29 // Account represents a Mastodon account entity |
32 type Account struct { |
30 type Account struct { |
33 ID int `json:"id"` |
31 ID int `json:"id"` |