tencent

package
v0.0.0-...-2c311f4 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TencentClient

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

腾讯云的客户端

func NewTencentClient

func NewTencentClient(secretId, secretKey string) *TencentClient

func (*TencentClient) SetPageSize

func (c *TencentClient) SetPageSize(pageSize int64)

func (*TencentClient) SetResourceHandleHook

func (c *TencentClient) SetResourceHandleHook(hook provider.ResourceHandleHook)

基于回调的写法(最直接, 损耗最小), js 就是这种用法的典型

func (*TencentClient) SyncHost

func (c *TencentClient) SyncHost(ctx context.Context)

需要返回的数据是什么? 采用回调(避免使用channel) js array.forEatch(() => {}) 如何实现分页? 限速如何处理?

func (*TencentClient) TransferLighthouseInstance

func (c *TencentClient) TransferLighthouseInstance(
	ins *lighthouse.Instance) *resource.Resource

这个函数专门处理转换

Jump to

Keyboard shortcuts

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