github.com/blend/go-sdk@v1.20220411.3/ratelimiter/rate_limiter.go (about) 1 /* 2 3 Copyright (c) 2022 - Present. Blend Labs, Inc. All rights reserved 4 Use of this source code is governed by a MIT license that can be found in the LICENSE file. 5 6 */ 7 8 package ratelimiter 9 10 // RateLimiter is a type that can be used as a rate limiter. 11 type RateLimiter interface { 12 // Check returns for a given id `true` if that id is _above_ the rate limit, and false otherwise. 13 Check(string) bool 14 }