Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadParams ¶
LoadParams loads params from viper.Viper instance. Returns ErrAuth if failed to retrieve api key.
func RateLimited ¶ added in v1.98.1
func RateLimited(params RateLimitParams) bool
RateLimited determines if we should send heartbeats to the API or save to the offline db.
func ResetRateLimit ¶ added in v1.98.1
ResetRateLimit updates the internal.heartbeats_last_sent_at timestamp.
Types ¶
Click to show internal directories.
Click to hide internal directories.