sender

package
v1.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 23, 2024 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run()

Set up passive related loop

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

type NRDPResponse struct {
	Status  int
	Message string
	Output  string
}

func (*NRDPResponse) String

func (n *NRDPResponse) String() string

type NRDPServer

type NRDPServer struct {
	Name  string
	Url   string
	Token string
}

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...

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL