Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var CheckClient = func(name string) bool { return false }
default: every client is denied.
View Source
var KeyRegex, _ = regexp.Compile("^[-0-9a-zA-Z=][-_0-9a-zA-Z=]{0,128}$")
make sure keys don't start with `__`, or underscores at all
View Source
var RootRegex, _ = regexp.Compile("^0x[0-9a-f]{64}$")
hex encoded bytes32, with 0x prefix
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 PubSubMessage ¶
type PubSubMessage struct {
Data []byte
}
PubSubMessage is the payload of a Pub/Sub event.
type ResultEntry ¶
type ResultFilesData ¶
type ResultFilesRef ¶
type ResultMsg ¶
type ResultMsg struct { // if the transition was successful (i.e. no err log) Success bool `json:"success"` // the flat-hash of the post-state SSZ bytes, for quickly finding different results. PostHash string `json:"post-hash"` // the name of the client; 'zrnt', 'lighthouse', etc. ClientName string `json:"client-name"` // the version number of the client, may contain a git commit hash ClientVersion string `json:"client-version"` // identifies the transition task Key string `json:"key"` // Result files Files ResultFilesData `json:"files"` }
type Task ¶
type Task struct { Index int `firestore:"index"` Blocks int `firestore:"blocks"` SpecVersion string `firestore:"spec-version"` SpecConfig string `firestore:"spec-config"` Created time.Time `firestore:"created"` Results map[string]ResultEntry `firestore:"results"` WorkersVersioned map[string]string `firestore:"workers-versioned"` Workers map[string]bool `firestore:"workers"` HasFail bool `firestore:"has-fail"` }
Click to show internal directories.
Click to hide internal directories.