diff options
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) -} -*/ |
