Documentation ¶
Index ¶
Constants ¶
View Source
const (
URL = "https://api.cloudflare.com/client/v4/"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func NewClient ¶
func NewClient(config *ConfigClient) (*Client, error)
func (*Client) IpsV4 ¶
func (c *Client) IpsV4() *IpsV4Result
IpsV4 ipv4 https://www.cloudflare.com/ips-v4
func (*Client) IpsV6 ¶
func (c *Client) IpsV6() *IpsV6Result
IpsV6 ipv6 https://www.cloudflare.com/ips-v6
type ConfigClient ¶
type IpsV4Response ¶
type IpsV4Response struct{}
type IpsV4Result ¶
type IpsV4Result struct { Result IpsV4Response // 结果 Body []byte // 内容 Http gorequest.Response // 请求 Err error // 错误 }
type IpsV6Response ¶
type IpsV6Response struct{}
type IpsV6Result ¶
type IpsV6Result struct { Result IpsV6Response // 结果 Body []byte // 内容 Http gorequest.Response // 请求 Err error // 错误 }
Click to show internal directories.
Click to hide internal directories.