Documentation ¶
Overview ¶
Package tree implements fetching tree status from Tree Status App.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func URLToTreeName ¶
URLToTreeName converts a tree status endpoint URL to a tree name. This follows the convention used to convert the URL in the old tree status apps.
Types ¶
type Client ¶
type Client interface { // FetchLatest fetches the latest tree status. FetchLatest(ctx context.Context, endpoint string) (Status, error) }
Client defines the interface that interacts with Tree status App.
type Status ¶
type Status struct { // State describes the Tree state. State State // Since is the timestamp when the tree obtains the current state. Since time.Time }
Status models the status returned by tree status app.
Note that only fields that are needed in CV are included. Source of Truth: https://source.chromium.org/chromium/infra/infra/+/52a8cfcb436b0012e668630a2f261237046a033a:appengine/chromium_status/appengine_module/chromium_status/status.py;l=209-252
Click to show internal directories.
Click to hide internal directories.