package
0.43.0
Repository: https://github.com/cornbase/common-lib.git
Documentation: pkg.go.dev

# Functions

ContextWithSignal sets up a signal listener, which will cancel the returned context when an interupt (SIGINT OR SIGTERM) is received.
No description provided by the author
No description provided by the author
IsValidReferralCode checks if a referral/root referral code is valid according to a regex pattern.
NewKOLReferralCode creates a new kol referral code.
No description provided by the author
No description provided by the author
NewRootReferralCode creates a new root referral code.
SleepContext sleeps for the given duration or until the context is cancelled.

# Variables

No description provided by the author
No description provided by the author
No description provided by the author

# Structs

MultiRateLimiter is a rate limiter which can handle cases where there are multiple rate limits that need to be enforced on a single resource.