Back to godoc.org

Package search

v0.0.0-...-1557bcf
Latest Go to latest

The latest major version is .

Published: Aug 13, 2020 | License: Apache-2.0 | Module: github.com/luci/luci-go

Index

Variables

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

func IndexedTags

func IndexedTags(tags strpair.Map) []string

IndexedTags returns the indexed tags.

type Query

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

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

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

Fetch performs main search builds logic.

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier