servicediscovery

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2024 License: Apache-2.0 Imports: 0 Imported by: 4

Documentation

Index

Constants

View Source
const (
	TCP              TransportProtocol         = "tcp"
	UDP              TransportProtocol         = "udp"
	TLS              SessionLayerProtocol      = "tls"
	SSH              SessionLayerProtocol      = "ssh"
	NO_SESSION_LAYER SessionLayerProtocol      = "tcp"
	HTTP             PresentationLayerProtocol = "http"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ApplicationLayerDiscovery

type ApplicationLayerDiscovery interface {
	Protocol() string
	Discover(sessionHandler ISessionHandler, presenationLayerDiscoveryResult IPresentationDiscoveryResult) (IApplicationDiscoveryResult, error)
}

type IApplicationDiscoveryResult

type IApplicationDiscoveryResult interface {
	Protocol() string
	GetIsDetected() bool
	GetProperties() map[string]interface{}
	GetIsAuthRequired() bool
}

type IPresentationDiscoveryResult

type IPresentationDiscoveryResult interface {
	Protocol() PresentationLayerProtocol
	GetIsDetected() bool
	GetProperties() map[string]interface{}
}

type ISessionHandler

type ISessionHandler interface {
	Connect() error
	Destory() error
	Write([]byte) (int, error)
	Read([]byte) (int, error)
	GetHost() string
	GetPort() int
}

type ISessionLayerDiscoveryResult

type ISessionLayerDiscoveryResult interface {
	Protocol() SessionLayerProtocol
	GetIsDetected() bool
	GetProperties() map[string]interface{}
	GetSessionHandler() (ISessionHandler, error)
}

type PresentationLayerDiscovery

type PresentationLayerDiscovery interface {
	Protocol() PresentationLayerProtocol
	Discover(sessionHandler ISessionHandler) (IPresentationDiscoveryResult, error)
}

type PresentationLayerProtocol

type PresentationLayerProtocol string

type SessionLayerProtocol

type SessionLayerProtocol string

type SessionLayerProtocolDiscovery

type SessionLayerProtocolDiscovery interface {
	Protocol() TransportProtocol
	SessionLayerDiscover(hostAddr string, port int) (ISessionLayerDiscoveryResult, error)
}

type TransportProtocol

type TransportProtocol string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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