tencent

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: May 11, 2026 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SortedSiteNames added in v0.2.0

func SortedSiteNames(configs map[string]Config) []string

Types

type Config

type Config struct {
	Name      string `mapstructure:"-"`
	SecretID  string `mapstructure:"secret_id"`
	SecretKey string `mapstructure:"secret_key"`
	Region    string `mapstructure:"region"`
}

type TaskType

type TaskType uint16
const (
	PUSHCACHE TaskType = iota
	REFRESH
)

func (TaskType) String

func (s TaskType) String() string

type TencentCloudClient

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

func CreateCDNClientForConfig added in v0.2.0

func CreateCDNClientForConfig(config Config) (*TencentCloudClient, error)

func (*TencentCloudClient) PushUrlsCache

func (c *TencentCloudClient) PushUrlsCache(urls []string) (string, error)

func (*TencentCloudClient) QueryPushTaskCompleted added in v0.2.0

func (c *TencentCloudClient) QueryPushTaskCompleted(taskID string) (bool, error)

func (*TencentCloudClient) QueryRefreshTaskCompleted added in v0.2.0

func (c *TencentCloudClient) QueryRefreshTaskCompleted(taskID string) (bool, error)

func (*TencentCloudClient) RefreshPaths

func (c *TencentCloudClient) RefreshPaths(paths []string) (string, error)

func (*TencentCloudClient) RefreshURLs

func (c *TencentCloudClient) RefreshURLs(urls []string) (string, error)

Jump to

Keyboard shortcuts

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