Documentation ¶ Index ¶ type Client func New(target string) (*Client, error) func (c *Client) Allow(ctx context.Context, key string, limit int, window time.Duration) (bool, int, error) func (c *Client) Close() error Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Client ¶ type Client struct { // contains filtered or unexported fields } func New ¶ func New(target string) (*Client, error) func (*Client) Allow ¶ func (c *Client) Allow(ctx context.Context, key string, limit int, window time.Duration) (bool, int, error) func (*Client) Close ¶ func (c *Client) Close() error Source Files ¶ View all Source files guard.go Click to show internal directories. Click to hide internal directories.