Documentation ¶
Overview ¶
Package handlers contains the milo frontend handlers, including static HTML generation, HTTP routing, etc.
Index ¶
- func ConsoleHandler(c *router.Context) error
- func ErrorHandler(c *router.Context, err error)
- func GetBuildPage(ctx *router.Context, br *buildbucketpb.GetBuildRequest, ...) (*ui.BuildPage, error)
- func GetLimit(r *http.Request, def int) int
- func GetReload(r *http.Request, def int) int
- func NewTreeStatusClient(ctx context.Context, luciTreeStatusHost string) (tspb.TreeStatusClient, error)
- func ProjectLinks(c context.Context, project, group string) []ui.LinkGroup
- func Run(srv *server.Server, templatePath string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConsoleHandler ¶
ConsoleHandler renders the console page.
func ErrorHandler ¶
ErrorHandler renders an error page for the user.
func GetBuildPage ¶
func GetBuildPage(ctx *router.Context, br *buildbucketpb.GetBuildRequest, blamelistOpt buildbucket.BlamelistOption) (*ui.BuildPage, error)
GetBuildPage fetches the full set of information for a Milo build page from Buildbucket. Including the blamelist and other auxiliary information.
func GetLimit ¶
GetLimit extracts the "limit", "numbuilds", or "num_builds" http param from the request, or returns def implying no limit was specified.
func GetReload ¶
GetReload extracts the "reload" http param from the request, or returns def implying no limit was specified.
func NewTreeStatusClient ¶
func ProjectLinks ¶
ProjectLinks returns the navigation list surrounding a project and optionally group.
Types ¶
This section is empty.