Go SDKFeature Clients

Rate Limits Client

Accessed via client.RateLimits() on the Hatchet client.

RateLimitsClient

RateLimitsClient provides methods for interacting with rate limits

Methods:

NameDescription
ListList retrieves rate limits based on the provided parameters (optional).
UpsertUpsert creates or updates a rate limit with the provided options.

Functions

List

List retrieves rate limits based on the provided parameters (optional).

func (c *RateLimitsClient) List(ctx context.Context, opts *rest.RateLimitListParams) (*rest.RateLimitList, error)

Parameters:

NameType
ctxcontext.Context
opts*rest.RateLimitListParams

Returns:

Type
*rest.RateLimitList
error

Upsert

Upsert creates or updates a rate limit with the provided options.

func (c *RateLimitsClient) Upsert(opts CreateRatelimitOpts) error

Parameters:

NameType
optsCreateRatelimitOpts

Returns:

Type
error

CreateRatelimitOpts

CreateRatelimitOpts contains options for creating or updating a rate limit.

Fields:

NameTypeDescription
Keystringkey is the unique identifier for the rate limit
Limitintlimit is the maximum number of requests allowed within the duration
Durationtypes.RateLimitDurationduration specifies the time period for the rate limit

Last updated on August 24, 2026

On this page