Make wifi collector fail gracefully if metrics not available

This commit is contained in:
Matt Layher 2017-01-12 12:41:35 -05:00
commit d3089f2ce8
No known key found for this signature in database
GPG key ID: 77BFE531397EDE94
6 changed files with 101 additions and 26 deletions

View file

@ -24,6 +24,11 @@ func newClient() (*client, error) {
return nil, errUnimplemented
}
// Close always returns an error.
func (c *client) Close() error {
return errUnimplemented
}
// Interfaces always returns an error.
func (c *client) Interfaces() ([]*Interface, error) {
return nil, errUnimplemented