Documentation ¶ Index ¶ Variables func GetJSON(ns *entity.NutServer) (string, error) type UPS Constants ¶ This section is empty. Variables ¶ View Source var ( ErrAuthenticationFailed = errors.New("failed to authenticate to NUT server") ErrFailureAuthenticating = errors.New("an error occurred during authentication to NUT server") ErrConnectionFailed = errors.New("could not connect to NUT server") ) Functions ¶ func GetJSON ¶ func GetJSON(ns *entity.NutServer) (string, error) Types ¶ type UPS ¶ type UPS struct { nut.Client } Source Files ¶ View all Source files ups.go Click to show internal directories. Click to hide internal directories.