snet

package
v0.0.0-...-ef324e3 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RequestNative

func RequestNative(logName string, link *config.Link) string

this method use golang's net package, "GET" and "POST" are included. just simple encapsulation TODO: add proxy service

func RequestSelenium

func RequestSelenium(logName string, link *config.Link) string

const MAX_NUM_CONN_SELENIUM int = 10 TODO: TCP pool to be implemented. connTCP should be a global object, and can be reused many times. TODO: default request type is "GET", "POST" method is not implemented. TODO: many other request info doesn't transfer to selenium, such as header, cookies and so on. now is noly transfer url, such as "https://www.baidu.com". TODO: set timeout.

Types

This section is empty.

Jump to

Keyboard shortcuts

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