git-project-manager/internal/remotes/load/load.go

23 lines
528 B
Go
Raw Normal View History

2024-01-15 20:39:35 +00:00
package load
2024-12-19 19:55:49 +00:00
import "gitea.libretechconsulting.com/rmcguire/git-project-manager/internal/remotes/projects"
2024-01-15 20:39:35 +00:00
// This package provides structs that serve
// as the interface between remotes, and any code
// that will call StreamProjects() on those remotes
2024-01-15 20:39:35 +00:00
type ProgressInfo struct {
ProgressChan chan Progress
ProjectsChan chan []*projects.Project
ErrorChan chan error
DoneChan chan interface{}
NumProjects int
}
type Progress struct {
Page int
Pages int
Projects int
TotalProjects int
}