MCPcopy Create free account
hub / github.com/chainreactors/EvilProxy / newSyncReport

Function newSyncReport

internal/homeplugins/sync.go:510–523  ·  view source on GitHub ↗
(platform Platform)

Source from the content-addressed store, hash-verified

508}
509
510func newSyncReport(platform Platform) SyncReport {
511 now := time.Now().UTC()
512 return SyncReport{
513 SchemaVersion: 1,
514 Task: pluginTaskName,
515 Status: pluginTaskStatusOK,
516 Phase: pluginTaskPhaseInstall,
517 OK: true,
518 StartedAt: now,
519 UpdatedAt: now,
520 Platform: NormalizePlatform(platform),
521 Plugins: []PluginInstallStatus{},
522 }
523}
524
525func finishReport(report *SyncReport, errTask error) {
526 if report == nil {

Callers 2

SyncPlatformWithReportFunction · 0.85
DeleteWithReportFunction · 0.85

Calls 1

NormalizePlatformFunction · 0.85

Tested by

no test coverage detected