Reviews: Update December 27, 2024 (#134)

This commit is contained in:
Kirill
2025-02-09 00:47:39 +03:00
committed by GitHub
parent 3a67391d71
commit bc228dd6e1
3 changed files with 757 additions and 0 deletions

View File

@@ -44,6 +44,7 @@ type Client struct {
passes *Passes
clusters *Clusters
quants *Quants
reviews *Reviews
}
func (c Client) Analytics() *Analytics {
@@ -134,6 +135,10 @@ func (c Client) Quants() *Quants {
return c.quants
}
func (c Client) Reviews() *Reviews {
return c.reviews
}
type ClientOption func(c *ClientOptions)
func WithHttpClient(httpClient core.HttpClient) ClientOption {
@@ -200,6 +205,7 @@ func NewClient(opts ...ClientOption) *Client {
passes: &Passes{client: coreClient},
clusters: &Clusters{client: coreClient},
quants: &Quants{client: coreClient},
reviews: &Reviews{client: coreClient},
}
}
@@ -230,5 +236,6 @@ func NewMockClient(handler http.HandlerFunc) *Client {
passes: &Passes{client: coreClient},
clusters: &Clusters{client: coreClient},
quants: &Quants{client: coreClient},
reviews: &Reviews{client: coreClient},
}
}