(endpoint string)
| 37 | } |
| 38 | |
| 39 | func NewClient(endpoint string) Client { |
| 40 | return &client{ |
| 41 | httpClient: &http.Client{}, |
| 42 | endpoint: endpoint, |
| 43 | } |
| 44 | } |
| 45 | |
| 46 | func (c *client) Awaken(api userconfig.Resource) error { |
| 47 | payload, err := json.Marshal(api) |