owlcache_httpclient

package
v0.0.0-...-d233a18 Latest Latest
Warning

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

Go to latest
Published: May 8, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OwlcacheHttpclient

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

定义OwlcacheHttpclient

func New

func New() *OwlcacheHttpclient

初始化gorequest库

func (*OwlcacheHttpclient) ClearSuperAgent

func (ohc *OwlcacheHttpclient) ClearSuperAgent()

清理资源

func (*OwlcacheHttpclient) Delete

func (ohc *OwlcacheHttpclient) Delete(addr, key, token string) (*Response, []error)

func (*OwlcacheHttpclient) Exists

func (ohc *OwlcacheHttpclient) Exists(addr, key string) (*Response, []error)

func (*OwlcacheHttpclient) Expire

func (ohc *OwlcacheHttpclient) Expire(addr, key, exptime, token string) (*Response, []error)

func (*OwlcacheHttpclient) Get

func (ohc *OwlcacheHttpclient) Get(addr, key string) (*Response, []error)

func (*OwlcacheHttpclient) Group_Get

func (ohc *OwlcacheHttpclient) Group_Get(addr, key, valuedata string) (*Response, []error)

func (*OwlcacheHttpclient) Pass

func (ohc *OwlcacheHttpclient) Pass(addr, pass string) (*Response, []error)

func (*OwlcacheHttpclient) Ping

func (ohc *OwlcacheHttpclient) Ping(addr, valuedata string) (*Response, []error)

func (*OwlcacheHttpclient) Set

func (ohc *OwlcacheHttpclient) Set(addr, key, valuedata, exptime, token string) (*Response, []error)

func (*OwlcacheHttpclient) Timeout

func (ohc *OwlcacheHttpclient) Timeout(owlcache_http_request_timeout time.Duration)

设置超时

type Response

type Response struct {
	*http.Response
}

func (*Response) Byte

func (r *Response) Byte() []byte

获取的数据结果转[]byte

func (*Response) DownLoadFile

func (r *Response) DownLoadFile(filepath string) error

Response body save as a file

func (*Response) JsonUnmarshal

func (r *Response) JsonUnmarshal(v interface{}) error

Json.Unmarshal ResponseBody

func (*Response) String

func (r *Response) String() string

获取的数据结果转string

Jump to

Keyboard shortcuts

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