protocol

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2018 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NetworkTarget

type NetworkTarget struct {
	Typ    TargetType
	Raw    string
	Target interface{}
}

NetworkTarget represents network target resolved

func DiscoverGatewayTarget

func DiscoverGatewayTarget() *NetworkTarget

DiscoverGatewayTarget discover and build gateway target

func ResolveTarget

func ResolveTarget(target string) *NetworkTarget

ResolveTarget as NetworkTarget

func TCPTarget

func TCPTarget(networkTarget *NetworkTarget, port int) *NetworkTarget

TCPTarget tcp target as NetworkTarget

type TargetType

type TargetType int

TargetType represent the type in network

const (
	Unknown TargetType = iota
	IP
	TCP
)

Network targets types

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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