util

package
v0.0.0-...-d3ed2aa Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2016 License: Apache-2.0 Imports: 13 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 InitLog

func InitLog(file string)

InitLog init log

func Remove

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

Remove remove from list

func SetLogLevel

func SetLogLevel(level string) string

SetLogLevel set log level

func ToStringArray

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

ToStringArray return string array

func UUID

func UUID() string

UUID return uuid string

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