(data *SelfHostedData)
| 14 | } |
| 15 | |
| 16 | func MakeSelfHosted(data *SelfHostedData) *SelfHosted { |
| 17 | return &SelfHosted{ |
| 18 | SelfHostedData: data, |
| 19 | Client: sling.New().Client(MakeClient()). |
| 20 | Base(data.Url). |
| 21 | SetMany(map[string]string{ |
| 22 | "Authorization": "Bearer " + data.Key, |
| 23 | }), |
| 24 | } |
| 25 | } |
| 26 | |
| 27 | type SelfHosted struct { |
| 28 | *SelfHostedData |