Documentation ¶
Index ¶
- Constants
- func FileNameStrip(fullName string) string
- func FileSha1(filePath string) (hexDigest string, err error)
- func Get(urlGet string, headers map[string]string, data map[string]string) ([]byte, error)
- func GetWithResponse(urlGet string, headers map[string]string, data map[string]string) ([]byte, *http.Response, error)
- func NewClient() *http.Client
- func PostForm(urlPost string, headers map[string]string, data map[string]string) ([]byte, error)
- func PostFormWithResponse(urlPost string, headers map[string]string, data map[string]string) ([]byte, *http.Response, error)
- func ReadCookieFile() (string, error)
- func Request(method, url string, body io.Reader, headers map[string]string) (*http.Response, error)
- func ReverseStrings(s []string)
- func Sha1(content []byte) string
- type Cipher
- type WaitGroupPool
Constants ¶
View Source
const RetryTimes = 10
Variables ¶
This section is empty.
Functions ¶
func FileNameStrip ¶
func GetWithResponse ¶
func PostFormWithResponse ¶
func ReverseStrings ¶
func ReverseStrings(s []string)
Types ¶
type Cipher ¶
type Cipher struct {
// contains filtered or unexported fields
}
Cipher 加密解密信息
type WaitGroupPool ¶
type WaitGroupPool struct {
// contains filtered or unexported fields
}
func NewWaitGroupPool ¶
func NewWaitGroupPool(size int) *WaitGroupPool
func (*WaitGroupPool) Add ¶
func (p *WaitGroupPool) Add()
func (*WaitGroupPool) Done ¶
func (p *WaitGroupPool) Done()
func (*WaitGroupPool) Size ¶
func (p *WaitGroupPool) Size() int
func (*WaitGroupPool) Wait ¶
func (p *WaitGroupPool) Wait()
Click to show internal directories.
Click to hide internal directories.