Help us shape the future of Go! Take the 2026 Go Developer Survey

syncer

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GitHub

type GitHub interface {
	OrganizationRepositories(context.Context, string) ([]gh.Repository, error)
	Repository(context.Context, string, string) (gh.Repository, error)
	OrganizationAlerts(context.Context, string) ([]gh.Alert, error)
	RepositoryAlerts(context.Context, string, string) ([]gh.Alert, error)
}

type Result

type Result struct {
	Repositories, Alerts int
	Duration             time.Duration
}

type Syncer

type Syncer struct {
	Store  *store.Store
	GitHub GitHub
	// OnProgress reports completed work in the current phase; total=-1 means unknown.
	OnProgress func(phase string, completed, total int)
}

func (*Syncer) Sync

func (s *Syncer) Sync(ctx context.Context, org, repo string) (result Result, err error)

Jump to

Keyboard shortcuts

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