protocols

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultRegisteredProtocolInterfaces

func DefaultRegisteredProtocolInterfaces() map[string]ProtocolInterface

func IsRegistered

func IsRegistered(registeredInterfaces *map[string]ProtocolInterface, funcName string) bool

func RegisterProtocolInterface

func RegisterProtocolInterface(registeredInterfaces *map[string]ProtocolInterface, protocolInterfaceName string, protocolInterface ProtocolInterface)

Types

type FTP

type FTP struct {
}

func (FTP) CheckService

func (ftp FTP) CheckService(Protocol models.Protocol) error

type Http

type Http struct{}

func (Http) CheckService

func (httpVar Http) CheckService(Protocol models.Protocol) error

If error is nil, then service is up

type Https

type Https struct{}

func (Https) CheckService

func (https Https) CheckService(Protocol models.Protocol) error

If error is nil, then service is up

type Icmp

type Icmp struct {
}

func (Icmp) CheckService

func (icmp Icmp) CheckService(Protocol models.Protocol) error

If error is nil, then service is up

type Icmp6

type Icmp6 struct {
}

func (Icmp6) CheckService

func (icmp Icmp6) CheckService(Protocol models.Protocol) error

If error is nil, then service is up

type ProtocolInterface

type ProtocolInterface interface {
	CheckService(Protocol models.Protocol) error // Check if protocol is OK or ERROR
}

Jump to

Keyboard shortcuts

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