Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddPullMirrorToQueue ¶
func AddPullMirrorToQueue(repoID int64)
AddPullMirrorToQueue adds repoID to mirror queue
func AddPushMirrorToQueue ¶
func AddPushMirrorToQueue(mirrorID int64)
AddPushMirrorToQueue adds the push mirror to the queue
func PushToQueue ¶
PushToQueue adds the sync request to the queue
func StartSyncMirrors ¶
func StartSyncMirrors(queueHandle func(data ...*SyncRequest) []*SyncRequest)
StartSyncMirrors starts a go routine to sync the mirrors
Types ¶
type SyncRequest ¶
type SyncRequest struct { Type SyncType ReferenceID int64 // RepoID for pull mirror, MirrorID for push mirror }
SyncRequest for the mirror queue
Click to show internal directories.
Click to hide internal directories.