Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type NRDPCheckResult ¶
type NRDPCheckResult struct { Checkresult NRDPObjectType `json:"checkresult"` Hostname string `json:"hostname"` Servicename string `json:"servicename,omitempty"` State int `json:"state"` Output string `json:"output"` }
type NRDPObjectType ¶
type NRDPObjectType struct {
Type string `json:"type"`
}
type NRDPResponse ¶
func (*NRDPResponse) String ¶
func (n *NRDPResponse) String() string
type NRDPServer ¶
func (*NRDPServer) Send ¶
func (n *NRDPServer) Send(checks []NRDPCheckResult) (NRDPResponse, error)
Send a request to the NRDP server with any check data we want to pass
func (*NRDPServer) SetConn ¶
func (n *NRDPServer) SetConn(u, token string) error
Create a new NRDPServer and verify the url
func (*NRDPServer) String ¶
func (n *NRDPServer) String() string
func (*NRDPServer) TestConn ¶
func (n *NRDPServer) TestConn() error
Check if NRDP server and creds are valid and return and error if they are not...
Click to show internal directories.
Click to hide internal directories.