Documentation
¶
Index ¶
- Variables
- func GetLocalIP() string
- func Hex2Dec(val string) int64
- func Mac() string
- func MacInt64() int64
- func Macs() []string
- type HttpClient
- func (hc *HttpClient) Delete()
- func (hc *HttpClient) DeleteSync()
- func (hc *HttpClient) Get()
- func (hc *HttpClient) GetSync() (string, error)
- func (hc *HttpClient) Post()
- func (hc *HttpClient) PostSync() (string, error)
- func (hc *HttpClient) Put()
- func (hc *HttpClient) PutSync()
- func (hc *HttpClient) SetHeader(req *http.Request, force ...bool)
Constants ¶
This section is empty.
Variables ¶
View Source
var RequestHeader struct { XRequestedWith string XRequestedWithXML string ContentType string ContentTypeJSON string }
View Source
var RequestMethod struct { GET string POST string PUT string DELETE string }
Functions ¶
func GetLocalIP ¶
func GetLocalIP() string
Types ¶
type HttpClient ¶
type HttpClient struct { Host string Context string Uri string Url string Method string Headers map[string]string Data interface{} Timeout time.Duration Then chan interface{} Catch chan error }
func NewHttpClient ¶
func NewHttpClient() *HttpClient
func (*HttpClient) Delete ¶
func (hc *HttpClient) Delete()
func (*HttpClient) DeleteSync ¶
func (hc *HttpClient) DeleteSync()
func (*HttpClient) Get ¶
func (hc *HttpClient) Get()
func (*HttpClient) GetSync ¶
func (hc *HttpClient) GetSync() (string, error)
func (*HttpClient) Post ¶
func (hc *HttpClient) Post()
func (*HttpClient) PostSync ¶
func (hc *HttpClient) PostSync() (string, error)
func (*HttpClient) Put ¶
func (hc *HttpClient) Put()
func (*HttpClient) PutSync ¶
func (hc *HttpClient) PutSync()
Click to show internal directories.
Click to hide internal directories.