Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Authorizer ¶
func Authorizer() security.Authorizer
Authorizer implements an authorization policy that authorizes callers with any recognizeable blessing name.
func NewArchiver ¶
func NewArchiver(store Store, url string) archive.BenchmarkArchiverServerStub
NewArchiver returns an archive.BenchmarkArchiver server that uses store to persist data and provides a UI to browse archived benchmark results at url.
Types ¶
type Assets ¶
type Assets struct {
// contains filtered or unexported fields
}
type Benchmark ¶
type Benchmark struct { ID string // A unique identifier of this particular Benchmark Name string // Name (e.g. v.io/v23/security.BenchmarkSign) of the Benchmark. Scenario ben.Scenario // The scenario under which the benchmark was run. Uploader string // Identity of the user that uploaded the results. // Results from most recently uploaded runs for this benchmark. NanoSecsPerOp float64 MegaBytesPerSec float64 LastUpdate time.Time }
Benchmark identifies a particular (Benchmark, Scenario, Uploader) tuple. Many ben.Run objects are associated with a single Benchmark.
func (Benchmark) PrettyTime ¶
type BenchmarkIterator ¶
type BenchmarkIterator interface { Iterator Value() Benchmark Runs() RunIterator }
type Query ¶
func ParseQuery ¶
ParseQuery converts a query string into a structured Query object.
The query language supports setting each field in the Query object at most once and the query will be an AND of all terms. A more expressive query language is left as an exercise to a future enthusiast.