Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ClientNameRegex, _ = regexp.Compile("^[0-9a-zA-Z][-_0-9a-zA-Z]{0,128}$")
make sure client name keys don't start with `__`, or underscores at all, or hyphens
View Source
var VersionRegex, _ = regexp.Compile("^[0-9a-zA-Z][-_.0-9a-zA-Z]{0,128}$")
versions are not used as keys in firestore, and may contain dots.
Functions ¶
Types ¶
type ListingResult ¶
type ResultEntry ¶
type ResultEntry struct { Success bool `firestore:"success" json:"success"` Created time.Time `firestore:"created" json:"created"` ClientName string `firestore:"client-name" json:"client-name"` ClientVersion string `firestore:"client-version" json:"client-version"` PostHash string `firestore:"post-hash" json:"post-hash"` Files ResultFilesRef `firestore:"files" json:"files"` }
type ResultFilesRef ¶
type Task ¶
type Task struct { Index int `firestore:"index" json:"index"` Blocks int `firestore:"blocks" json:"blocks"` SpecVersion string `firestore:"spec-version" json:"spec-version"` SpecConfig string `firestore:"spec-config" json:"spec-config"` Created time.Time `firestore:"created" json:"created"` Results map[string]ResultEntry `firestore:"results" json:"results"` // ignored by firestore. But used to uniquely identify the task, and fetch its contents from storage. Key string `firestore:"-" json:"key"` }
type TaskIndexDoc ¶
type TaskIndexDoc struct {
NextIndex int `firestore:"next-index"`
}
Click to show internal directories.
Click to hide internal directories.