syncman

package
v0.3.11-8 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2024 License: Apache-2.0 Imports: 6 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ISyncClient

type ISyncClient interface {
	DoSync(first bool, timeout bool) (time.Duration, error)
	NeedSync(dat *jsonutils.JSONDict) bool
	Name() string
}

type SSyncManager

type SSyncManager struct {
	ISyncClient
	// contains filtered or unexported fields
}

func (*SSyncManager) FirstSync

func (manager *SSyncManager) FirstSync() error

func (*SSyncManager) InitSync

func (manager *SSyncManager) InitSync(client ISyncClient)

func (*SSyncManager) SyncOnce

func (manager *SSyncManager) SyncOnce(isFirst bool, isTimeout bool)

type SyncTask

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

func (*SyncTask) Dump

func (t *SyncTask) Dump() string

func (*SyncTask) Run

func (t *SyncTask) Run()

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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