23 lines
525 B
Go
23 lines
525 B
Go
package forgepb
|
|
|
|
import (
|
|
sync "sync"
|
|
|
|
"go.wit.com/lib/protobuf/gitpb"
|
|
)
|
|
|
|
// maybe an interface someday?
|
|
type Forge struct {
|
|
// one-time initialized data
|
|
once sync.Once
|
|
Config *ForgeConfigs // config repos for readonly, private, etc
|
|
Repos *gitpb.Repos // the repo protobufs
|
|
Patchsets *Patchsets // patches that are in progress
|
|
hostname string // your hostname
|
|
goWork bool // means the user is currently using a go.work file
|
|
}
|
|
|
|
func (f *Forge) IsGoWork() bool {
|
|
return f.goWork
|
|
}
|