author | convert-repo |
Mon, 01 May 2017 06:34:53 +0000 | |
changeset 164 | bc53768d9c8c |
parent 155 | 0c581e0108da |
child 207 | 301d5b94be3f |
permissions | -rw-r--r-- |
130 | 1 |
/* |
2 |
Copyright 2017 Mikael Berthe |
|
3 |
||
4 |
Licensed under the MIT license. Please see the LICENSE file is this directory. |
|
5 |
*/ |
|
6 |
||
138
23d3a518d0ad
Update package name in source files
Mikael Berthe <mikael@lilotux.net>
parents:
130
diff
changeset
|
7 |
package madon |
112 | 8 |
|
9 |
import ( |
|
10 |
"github.com/sendgrid/rest" |
|
11 |
) |
|
12 |
||
13 |
// GetCurrentInstance returns current instance information |
|
138
23d3a518d0ad
Update package name in source files
Mikael Berthe <mikael@lilotux.net>
parents:
130
diff
changeset
|
14 |
func (mc *Client) GetCurrentInstance() (*Instance, error) { |
112 | 15 |
var i Instance |
155 | 16 |
if err := mc.apiCall("instance", rest.Get, nil, nil, nil, &i); err != nil { |
120 | 17 |
return nil, err |
112 | 18 |
} |
19 |
return &i, nil |
|
20 |
} |