qnet

package
v0.0.0-...-4155a33 Latest Latest
Warning

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

Go to latest
Published: May 26, 2020 License: MIT Imports: 12 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AllNetInterfaceIP

func AllNetInterfaceIP() ([]net.IP, error)

func AllNetInterfaceIPString

func AllNetInterfaceIPString() ([]string, error)

func CurrentIPAndMac

func CurrentIPAndMac() (string, string, error)

Types

type SimpleHttp

type SimpleHttp struct {
	// contains filtered or unexported fields
}

func GetSimpleHttp

func GetSimpleHttp() *SimpleHttp

func (*SimpleHttp) Get

func (o *SimpleHttp) Get(t string, url string, headers map[string]string, encoding string) (string, interface{}, error)

func (*SimpleHttp) GetClient

func (o *SimpleHttp) GetClient(t string) interface{}

func (*SimpleHttp) Gets

func (o *SimpleHttp) Gets(t string, opts []map[string]interface{}) []map[string]interface{}

func (*SimpleHttp) GorillaGet

func (o *SimpleHttp) GorillaGet(url string, headers map[string]string, encoding string) (string, interface{}, error)

func (*SimpleHttp) InitClients

func (o *SimpleHttp) InitClients(t string, count int, timeout int)

func (*SimpleHttp) Post

func (o *SimpleHttp) Post(url string, headers map[string]string, body string, encoding string) (string, *http.Response, error)

func (*SimpleHttp) SimplePost

func (o *SimpleHttp) SimplePost()

func (*SimpleHttp) Sleep

func (o *SimpleHttp) Sleep(millisec int)

func (*SimpleHttp) StdGet

func (o *SimpleHttp) StdGet(url string, headers map[string]string, encoding string) (string, interface{}, error)

Jump to

Keyboard shortcuts

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