diff options
| author | Jeff Carr <[email protected]> | 2025-09-11 21:47:19 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-09-11 21:47:19 -0500 |
| commit | 6c3162f7ce42a85afcff0b984fe6972f96fd3c8a (patch) | |
| tree | 20a493a737b3343208ae5be6fe298a8f36d4a8c2 /structs.go | |
| parent | ef00352a0bc0616f2b55554a3ac6351d0edba25f (diff) | |
rm full scan stuff
Diffstat (limited to 'structs.go')
| -rw-r--r-- | structs.go | 40 |
1 files changed, 11 insertions, 29 deletions
@@ -2,7 +2,6 @@ package forgepb import ( sync "sync" - "time" "go.wit.com/lib/protobuf/gitpb" ) @@ -10,19 +9,17 @@ import ( // maybe an interface someday? type Forge struct { // one-time initialized data - once sync.Once - initErr error // init error, if any - goWork bool // means the user is currently using a go.work file - Config *ForgeConfigs // config repos for readonly, private, etc - Repos *gitpb.Repos // the repo protobufs - configSave bool // if you need to save the config because things changed - hasFullScan bool // track last scan so it can be throttled - fullscan time.Time // time of the last scan so it can be throttled - hostname string // your hostname - rillX int // used for Rill() - rillY int // used for Rill() - Patchsets *Patchsets // patches that are in progress - goSrc string // the path to go/src + once sync.Once + initErr error // init error, if any + goWork bool // means the user is currently using a go.work file + Config *ForgeConfigs // config repos for readonly, private, etc + Repos *gitpb.Repos // the repo protobufs + configSave bool // if you need to save the config because things changed + hostname string // your hostname + rillX int // used for Rill() + rillY int // used for Rill() + Patchsets *Patchsets // patches that are in progress + goSrc string // the path to go/src // forgeURL string // URL to use to forge.wit.com // configDir string // normally ~/.config/forge // patchDir string // where patches are stored @@ -35,18 +32,3 @@ func (f *Forge) GetGoSrc() string { func (f *Forge) IsGoWork() bool { return f.goWork } - -/* -func (f *Forge) HasFullScan() bool { - return f.Repos.HasFullScan -} - -func (f *Forge) FullScanRan() { - f.fullscan = time.Now() -} - -func (f *Forge) FullScanAge() time.Duration { - fs := f.Repos.FullScan.AsTime() - return time.Since(fs) -} -*/ |
