sender

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2023 License: GPL-3.0 Imports: 11 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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