You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
NewRealtimeStatsClient pulls the API key out of an environment variable, whereas NewClient gets it from a function param. It also panics instead of returning an error (unlike NewClient), but perhaps there's some reason for that.
Since this module has very recently changed hands, this might be something worth considering breaking while everyone is already going through and updating import paths.
The text was updated successfully, but these errors were encountered:
pteichman
added a commit
to pteichman/go-fastly
that referenced
this issue
Apr 10, 2020
This is an RTSClient counterpart to NewClientForEndpoint.
The existing API (NewRealtimeStatsClient) requires FASTLY_API_KEY
to be set in the environment, and panics if the endpoint url
cannot be parsed.
This new API doesn't make any environment requirements and returns
an error if its endpoint cannot be parsed, making it more flexible
for embedding in applications.
Fixesfastly#118
This is an RTSClient counterpart to NewClientForEndpoint.
The existing API (NewRealtimeStatsClient) requires FASTLY_API_KEY
to be set in the environment, and panics if the endpoint url
cannot be parsed.
This new API doesn't make any environment requirements and returns
an error if its endpoint cannot be parsed, making it more flexible
for embedding in applications.
Fixesfastly#118
NewRealtimeStatsClient pulls the API key out of an environment variable, whereas NewClient gets it from a function param. It also panics instead of returning an error (unlike NewClient), but perhaps there's some reason for that.
Since this module has very recently changed hands, this might be something worth considering breaking while everyone is already going through and updating import paths.
The text was updated successfully, but these errors were encountered: