sync

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2025 License: MIT Imports: 16 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

When 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.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetMinerConfig

func GetMinerConfig(annotations map[string]string) (cpu int32, mem int32)

Types

type ChainSyncReconciler

type ChainSyncReconciler struct {
	Store store.IStore
	// contains filtered or unexported fields
}

ChainSyncReconciler sync a Chain object to database.

func (*ChainSyncReconciler) Reconcile

func (r *ChainSyncReconciler) Reconcile(ctx context.Context, rq ctrl.Request) (ctrl.Result, error)

func (*ChainSyncReconciler) SetupWithManager

func (r *ChainSyncReconciler) SetupWithManager(ctx context.Context, mgr ctrl.Manager, options controller.Options) error

SetupWithManager sets up the controller with the Manager.

type MinerSetSyncReconciler

type MinerSetSyncReconciler struct {
	Store store.IStore
	// contains filtered or unexported fields
}

MinerSetSyncReconciler sync a MinerSet object to database.

func (*MinerSetSyncReconciler) Reconcile

func (*MinerSetSyncReconciler) SetupWithManager

func (r *MinerSetSyncReconciler) SetupWithManager(ctx context.Context, mgr ctrl.Manager, options controller.Options) error

SetupWithManager sets up the controller with the Manager.

type MinerSyncReconciler

type MinerSyncReconciler struct {
	Store store.IStore
	// contains filtered or unexported fields
}

MinerSyncReconciler sync a Miner object to database.

func (*MinerSyncReconciler) Reconcile

func (r *MinerSyncReconciler) Reconcile(ctx context.Context, rq ctrl.Request) (ctrl.Result, error)

func (*MinerSyncReconciler) SetupWithManager

func (r *MinerSyncReconciler) SetupWithManager(ctx context.Context, mgr ctrl.Manager, options controller.Options) error

SetupWithManager sets up the controller with the Manager.

Jump to

Keyboard shortcuts

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