{"modulePath":"github.com/onexstack/onex","version":"v0.2.0-alpha.14","isLatest":false,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package sync\n\nWhen there is a large amount of data in Etcd, there is a query bottleneck, especially with the List interface. Therefore, the Sync package can be used to continuously synchronize data from Etcd to the MySQL database in real-time. When onex-gateway performs list queries, it can directly query from the MySQL database.\n\n## Functions\n\n```go\nfunc GetMinerConfig(annotations map[string]string) (cpu int32, mem int32)\n```\n\n## Types\n\n```go\ntype ChainSyncReconciler struct {\n\tStore store.IStore\n\t// contains filtered or unexported fields\n}\n```\nChainSyncReconciler sync a Chain object to database.\n\n```go\nfunc (r *ChainSyncReconciler) Reconcile(ctx context.Context, rq ctrl.Request) (ctrl.Result, error)\n```\n\n```go\nfunc (r *ChainSyncReconciler) SetupWithManager(ctx context.Context, mgr ctrl.Manager, options controller.Options) error\n```\nSetupWithManager sets up the controller with the Manager.\n\n```go\ntype MinerSetSyncReconciler struct {\n\tStore store.IStore\n\t// contains filtered or unexported fields\n}\n```\nMinerSetSyncReconciler sync a MinerSet object to database.\n\n```go\nfunc (r *MinerSetSyncReconciler) Reconcile(ctx context.Context, rq ctrl.Request) (ctrl.Result, error)\n```\n\n```go\nfunc (r *MinerSetSyncReconciler) SetupWithManager(ctx context.Context, mgr ctrl.Manager, options controller.Options) error\n```\nSetupWithManager sets up the controller with the Manager.\n\n```go\ntype MinerSyncReconciler struct {\n\tStore store.IStore\n\t// contains filtered or unexported fields\n}\n```\nMinerSyncReconciler sync a Miner object to database.\n\n```go\nfunc (r *MinerSyncReconciler) Reconcile(ctx context.Context, rq ctrl.Request) (ctrl.Result, error)\n```\n\n```go\nfunc (r *MinerSyncReconciler) SetupWithManager(ctx context.Context, mgr ctrl.Manager, options controller.Options) error\n```\nSetupWithManager sets up the controller with the Manager.\n\n","path":"github.com/onexstack/onex/internal/controller/sync","name":"sync","synopsis":"When there is a large amount of data in Etcd, there is a query bottleneck, especially with the List interface.","isRedistributable":true}
