endpoint

package
v0.0.0-...-69ab156 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2019 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Endpoint2tars

func Endpoint2tars(end Endpoint) endpointf.EndpointF

Endpoint2tars transfer Endpoint to endpointf.EndpointF

Types

type Endpoint

type Endpoint struct {
	Host      string
	Port      int32
	Timeout   int32
	Istcp     int32 //need remove
	Proto     string
	Bind      string
	Container string
	SetId     string
}

Endpoint struct is used record a remote server instance.

func Parse

func Parse(endpoint string) Endpoint

Parse pares string to struct Endpoint, like tcp -h 10.219.139.142 -p 19386 -t 60000

func Tars2endpoint

func Tars2endpoint(end endpointf.EndpointF) Endpoint

Tars2endpoint make endpointf.EndpointF to Endpoint struct.

Jump to

Keyboard shortcuts

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