diff options
| author | Jeff Carr <[email protected]> | 2025-02-22 06:53:42 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-02-22 06:53:42 -0600 |
| commit | f540aab43407a50477c8b25af8ba125dcc5c6be6 (patch) | |
| tree | ffa6a52593b30122053bf8d4d6a372b2f9667870 /structs.go | |
| parent | a170250cb4e44b87641b2a3b7a36afec3bfab741 (diff) | |
Diffstat (limited to 'structs.go')
| -rw-r--r-- | structs.go | 23 |
1 files changed, 11 insertions, 12 deletions
@@ -5,23 +5,22 @@ import ( "time" "go.wit.com/lib/protobuf/gitpb" - "go.wit.com/lib/protobuf/zoopb" ) // maybe an interface someday? type Forge struct { // one-time initialized data - initOnce sync.Once - initErr error // init error, if any - goSrc string // the path to go/src - configDir string // normally ~/.config/forge - 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 - Machine *zoopb.Machine // things for virtigo to track vm's - 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 + initOnce sync.Once + initErr error // init error, if any + goSrc string // the path to go/src + configDir string // normally ~/.config/forge + 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 + // Machine *zoopb.Machine // things for virtigo to track vm's + 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 } func (f *Forge) GetGoSrc() string { |
