auto formatting with autogenpb
This commit is contained in:
parent
d62954bb63
commit
7cacc395ef
60
repo.proto
60
repo.proto
|
@ -11,6 +11,36 @@ import "google/protobuf/timestamp.proto"; // Import the well-known type for Time
|
||||||
|
|
||||||
// global settings for autogenpb `autogenpb:mutex`
|
// global settings for autogenpb `autogenpb:mutex`
|
||||||
|
|
||||||
|
// should it be done this way?
|
||||||
|
message GitTimes { // `autogenpb:nomutex`
|
||||||
|
google.protobuf.Timestamp lastPull = 1; // last time a git pull was done
|
||||||
|
google.protobuf.Timestamp lastUpdate = 2; // when was ReloadGit() last done
|
||||||
|
google.protobuf.Timestamp lastDirty = 3; // last time CheckDirty() was run
|
||||||
|
google.protobuf.Timestamp mtimeDir = 4; // mtime for ./git // maybe useful to track
|
||||||
|
google.protobuf.Timestamp mtimeHead = 5; // mtime for ./git/HEAD // these two mtimes allow really fast checks to see if git has changed
|
||||||
|
google.protobuf.Timestamp mtimeIndex = 6; // mtime for ./git/HEAD // probably always in sync with HEAD
|
||||||
|
google.protobuf.Timestamp mtimeFetch = 7; // mtime for ./git/FETCH_HEAD // last time 'git fetch' or 'git pull' was run on current branch?
|
||||||
|
google.protobuf.Timestamp lastGoDep = 8; // mtime for last go.sum scan
|
||||||
|
google.protobuf.Timestamp newestCommit = 9; // when the newest commit was
|
||||||
|
google.protobuf.Timestamp mtimeConfig = 10; // mtime for the .git/config file
|
||||||
|
}
|
||||||
|
|
||||||
|
// this is probably better. think about moving to this instead
|
||||||
|
message GoInfo { // `autogenpb:nomutex`
|
||||||
|
string goPath = 1; // the logical path as used by golang: 'go.wit.com/apps/helloworld'
|
||||||
|
string desc = 2; // what is this repo?
|
||||||
|
bool goLibrary = 3; // is this a golang library?
|
||||||
|
bool goBinary = 4; // is this a golang binary?
|
||||||
|
bool goPrimitive = 5; // if this is a golang primitive (only has go.mod)
|
||||||
|
bool goPlugin = 6; // is this a golang plugin?
|
||||||
|
bool goProtobuf = 7; // autogen go files from .proto
|
||||||
|
GoDeps goDeps = 8; // what is in the go.sum file
|
||||||
|
GoDeps published = 9; // the last published go.mod/go.sum
|
||||||
|
bytes goMod = 10; // the last go.mod file
|
||||||
|
bytes goSum = 11; // the last go.sum file
|
||||||
|
bool gitIgnoresGoSum = 12; // does .gitignore ignore go.mod & go.sum?
|
||||||
|
}
|
||||||
|
|
||||||
message Repo { // `autogenpb:marshal` `autogenpb:nomutex`
|
message Repo { // `autogenpb:marshal` `autogenpb:nomutex`
|
||||||
string fullPath = 1; // `autogenpb:unique` `autogenpb:sort` // the actual path to the .git directory: '/home/devel/golang.org/x/tools'
|
string fullPath = 1; // `autogenpb:unique` `autogenpb:sort` // the actual path to the .git directory: '/home/devel/golang.org/x/tools'
|
||||||
string masterBranchName = 3; // git 'main' or 'master' branch name
|
string masterBranchName = 3; // git 'main' or 'master' branch name
|
||||||
|
@ -45,33 +75,3 @@ message Repos { // `autogenpb:marshal` `autogenpb:sort` `autogenpb:nomutex`
|
||||||
bool hasFullScan = 4; // a full repo scan has been saved to disk
|
bool hasFullScan = 4; // a full repo scan has been saved to disk
|
||||||
google.protobuf.Timestamp fullScan = 5; // mtime of the last full scan saved to disk
|
google.protobuf.Timestamp fullScan = 5; // mtime of the last full scan saved to disk
|
||||||
}
|
}
|
||||||
|
|
||||||
// should it be done this way?
|
|
||||||
message GitTimes { // `autogenpb:nomutex`
|
|
||||||
google.protobuf.Timestamp lastPull = 1; // last time a git pull was done
|
|
||||||
google.protobuf.Timestamp lastUpdate = 2; // when was ReloadGit() last done
|
|
||||||
google.protobuf.Timestamp lastDirty = 3; // last time CheckDirty() was run
|
|
||||||
google.protobuf.Timestamp mtimeDir = 4; // mtime for ./git // maybe useful to track
|
|
||||||
google.protobuf.Timestamp mtimeHead = 5; // mtime for ./git/HEAD // these two mtimes allow really fast checks to see if git has changed
|
|
||||||
google.protobuf.Timestamp mtimeIndex = 6; // mtime for ./git/HEAD // probably always in sync with HEAD
|
|
||||||
google.protobuf.Timestamp mtimeFetch = 7; // mtime for ./git/FETCH_HEAD // last time 'git fetch' or 'git pull' was run on current branch?
|
|
||||||
google.protobuf.Timestamp lastGoDep = 8; // mtime for last go.sum scan
|
|
||||||
google.protobuf.Timestamp newestCommit = 9; // when the newest commit was
|
|
||||||
google.protobuf.Timestamp mtimeConfig = 10; // mtime for the .git/config file
|
|
||||||
}
|
|
||||||
|
|
||||||
// this is probably better. think about moving to this instead
|
|
||||||
message GoInfo { // `autogenpb:nomutex`
|
|
||||||
string goPath = 1; // the logical path as used by golang: 'go.wit.com/apps/helloworld'
|
|
||||||
string desc = 2; // what is this repo?
|
|
||||||
bool goLibrary = 3; // is this a golang library?
|
|
||||||
bool goBinary = 4; // is this a golang binary?
|
|
||||||
bool goPrimitive = 5; // if this is a golang primitive (only has go.mod)
|
|
||||||
bool goPlugin = 6; // is this a golang plugin?
|
|
||||||
bool goProtobuf = 7; // autogen go files from .proto
|
|
||||||
GoDeps goDeps = 8; // what is in the go.sum file
|
|
||||||
GoDeps published = 9; // the last published go.mod/go.sum
|
|
||||||
bytes goMod = 10; // the last go.mod file
|
|
||||||
bytes goSum = 11; // the last go.sum file
|
|
||||||
bool gitIgnoresGoSum = 12; // does .gitignore ignore go.mod & go.sum?
|
|
||||||
}
|
|
||||||
|
|
Loading…
Reference in New Issue