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
这个函数专门处理转换
Click to show internal directories.
Click to hide internal directories.