Documentation ¶
Index ¶
- Constants
- Variables
- func CloseNetConn(conn *net.Conn)
- func CloseNetConnPoolForId(id string)
- func CloseNetPoolItem(item *NetPoolItem)
- func CloseNetPoolItemAtIndex(id string, index int)
- func Forward(host string, targetHost string)
- func ForwardClose(id string)
- func GetAveragePersistentOptions() map[string]interface{}
- func GetForwardId(host string, targetHost string) (string, string, string)
- func GetIntegerOption(options map[string]interface{}, name string, defValue int) int
- func InitBySettings(parameters map[string]string, functionPool map[string]interface{})
- func LoadStruct(method string, url string, body string, headers map[string]string, ...) error
- func LoadStructFormUrlEncoded(method string, url string, body interface{}, headers map[string]string, ...) error
- func NewJsonRequest(method string, url string, body string, headers map[string]string, ...) ([]byte, error)
- func NewRequest(method string, url string, body string, headers map[string]string, ...) ([]byte, error)
- func StopAllForwarding()
- func StopForwardingByHostTarget(host string, target string)
- func UpdatePropertiesThruNetRequest(request string) error
- func UrlEncodedPart(data interface{}) string
- func ValidateHostTargetForPortForwarding(host string, target string) bool
- type NetPoolItem
Constants ¶
View Source
const ( LogFatal = 0 LogError = 1 LogWarning = 2 LogInfo = 3 LogDetail = 4 LogDebug = 5 LogTrace = 6 )
View Source
const ( KindTcpForward = 1 KindDbConnection = 2 )
Variables ¶
View Source
var AveragePersistentOptions = map[string]interface{}{
"repeats": 50,
"pause": 5,
}
View Source
var KeepAliveNetPool = float64(keepAliveDefault)
View Source
var Log = LogError
View Source
var NetPool = make(map[string][]*NetPoolItem)
Functions ¶
func CloseNetConn ¶
func CloseNetConnPoolForId ¶
func CloseNetConnPoolForId(id string)
func CloseNetPoolItem ¶
func CloseNetPoolItem(item *NetPoolItem)
func CloseNetPoolItemAtIndex ¶
func ForwardClose ¶
func ForwardClose(id string)
func GetAveragePersistentOptions ¶
func GetAveragePersistentOptions() map[string]interface{}
func GetIntegerOption ¶
func InitBySettings ¶
func LoadStruct ¶
func NewJsonRequest ¶
func NewRequest ¶
func StopAllForwarding ¶
func StopAllForwarding()
func UrlEncodedPart ¶
func UrlEncodedPart(data interface{}) string
Types ¶
type NetPoolItem ¶
type NetPoolItem struct {
// contains filtered or unexported fields
}
func PlaceToNetPool ¶
Click to show internal directories.
Click to hide internal directories.