provider

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: 3 Imported by: 0

README

资源提供商

何时出发定时同步

  • 程序里写一个cron, 请参考Go语言中定时任务库Cron使用详解
  • 基于Job调度平台来进行调度执行:
    • x-job 使用第三方的一些job管理工具
    • 自己写一个分布式的job调度工具(有难度)
    • k8s cronjob (最优解)

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultResourceHandleHook = func(ctx context.Context, res *resource.Resource) {
	fmt.Println(res)
}

仅仅是打印下对象

Functions

This section is empty.

Types

type ResourceHandleHook

type ResourceHandleHook func(ctx context.Context, res *resource.Resource)

Provider 完成资源转换后调用该Hook

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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