Documentation ¶
Index ¶
- func LoadParams(ctx context.Context, v *viper.Viper) (paramscmd.Params, error)
- func RateLimited(params RateLimitParams) bool
- func ResetRateLimit(ctx context.Context, v *viper.Viper) error
- func Run(ctx context.Context, v *viper.Viper) (int, error)
- func SendHeartbeats(ctx context.Context, v *viper.Viper, queueFilepath string) error
- type RateLimitParams
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.