luci: Index | Files

package search

import ""


Package Files



var (
    PageTokenRegex = regexp.MustCompile(`^id>\d+$`)

func IndexedTags Uses

func IndexedTags(tags strpair.Map) []string

IndexedTags returns the indexed tags.

type Query Uses

type Query struct {
    Builder             *pb.BuilderID
    Tags                strpair.Map
    Status              pb.Status
    CreatedBy           identity.Identity
    StartTime           time.Time
    EndTime             time.Time
    IncludeExperimental bool
    BuildIdHigh         int64
    BuildIdLow          int64
    Canary              *bool
    PageSize            int32
    StartCursor         string

Query is the intermediate to store the arguments for ds search query.

func NewQuery Uses

func NewQuery(req *pb.SearchBuildsRequest) *Query

NewQuery builds a Query from pb.SearchBuildsRequest. It assumes CreateTime in req is either unset or valid and will panic on any failures.

func (*Query) Fetch Uses

func (q *Query) Fetch(ctx context.Context) (*pb.SearchBuildsResponse, error)

Fetch performs main search builds logic.

Package search imports 23 packages (graph) and is imported by 1 packages. Updated 2020-09-30. Refresh now. Tools for package owners.