Documentation
¶
Overview ¶
Package omahaproxy provides a client and utilities for working with the Chrome Omaha Proxy.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultTransport = http.DefaultTransport
DefaultTransport is the default transport.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
Transport http.RoundTripper
}
Client is a omaha proxy client.
func (*Client) Entries ¶
func (cl *Client) Entries(ctx context.Context) ([]VersionEntry, error)
Entries retrieves latest version entries from the omaha proxy.
type Option ¶
type Option func(*Client)
Option is a omaha proxy client option.
func WithLogf ¶
WithLogf is a omaha proxy client option to set a log handler for HTTP requests and responses.
func WithTransport ¶
func WithTransport(transport http.RoundTripper) Option
WithTransport is a omaha proxy client option to set the http transport.
type Version ¶
type Version struct {
BranchCommit string `json:"branch_commit"`
BranchBasePosition string `json:"branch_base_position"`
SkiaCommit string `json:"skia_commit"`
V8Version string `json:"v8_version"`
PreviousVersion string `json:"previous_version"`
V8Commit string `json:"v8_commit"`
TrueBranch string `json:"true_branch"`
PreviousReldate string `json:"previous_reldate"`
BranchBaseCommit string `json:"branch_base_commit"`
Version string `json:"version"`
CurrentReldate string `json:"current_reldate"`
CurrentVersion string `json:"current_version"`
OS string `json:"os"`
Channel string `json:"channel"`
ChromiumCommit string `json:"chromium_commit"`
}
Version wraps browser version information.
type VersionEntry ¶
VersionEntry is a OS version entry detailing the available browser version entries.
Click to show internal directories.
Click to hide internal directories.