util

package
v0.0.0-...-9c5c549 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2017 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get(l *list.List, index int) *list.Element

Get return element at index of list

func IndexOf

func IndexOf(l *list.List, value interface{}) int

IndexOf return index of element in list

func Remove

func Remove(l *list.List, value interface{})

Remove remove from list

func ToStringArray

func ToStringArray(l *list.List) []string

ToStringArray return string array

Types

type FastHTTPClient

type FastHTTPClient struct {
	MaxConnDuration     time.Duration
	MaxIdleConnDuration time.Duration
	ReadTimeout         time.Duration
	WriteTimeout        time.Duration

	MaxConns            int
	MaxResponseBodySize int

	WriteBufferSize int
	ReadBufferSize  int
	// contains filtered or unexported fields
}

FastHTTPClient fast http client

func NewFastHTTPClient

func NewFastHTTPClient(conf *conf.Conf) *FastHTTPClient

NewFastHTTPClient create FastHTTPClient instance

func (*FastHTTPClient) Do

Do do a http request

Jump to

Keyboard shortcuts

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