feat: add force refresh of license entitlements (#9155)

* feat: add force refresh of license entitlements
* send "going away" mesasge on licenses pubsub on close
* Add manual refresh to licenses page
This commit is contained in:
Steven Masley
2023-08-22 09:26:43 -05:00
committed by GitHub
parent 37a3b42c55
commit 262d7692b6
16 changed files with 264 additions and 13 deletions

View File

@ -103,6 +103,7 @@ type Entitlements struct {
HasLicense bool `json:"has_license"`
Trial bool `json:"trial"`
RequireTelemetry bool `json:"require_telemetry"`
RefreshedAt time.Time `json:"refreshed_at" format:"date-time"`
}
func (c *Client) Entitlements(ctx context.Context) (Entitlements, error) {