cloudflare

package
v1.0.63 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2023 License: MIT Imports: 6 Imported by: 0

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 ConfigClient struct {
	AccountID    string
	ZoneID       string
	GlobalAPIKey string
	MongoDb      *dorm.MongoClient // 日志数据库
	PgsqlDb      *gorm.DB          // 日志数据库
	DatabaseName string            // 库名
}

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              // 错误
}

Jump to

Keyboard shortcuts

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