summaryrefslogtreecommitdiff
path: root/structs.go
diff options
context:
space:
mode:
Diffstat (limited to 'structs.go')
-rw-r--r--structs.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/structs.go b/structs.go
index 05ed89e..34550b5 100644
--- a/structs.go
+++ b/structs.go
@@ -1,12 +1,18 @@
package forgepb
import (
+ sync "sync"
+
"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
Config *ForgeConfigs // config repos for readonly, private, etc
Repos *gitpb.Repos