🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

github.com/button/divvy-client-go

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/button/divvy-client-go

v0.0.0-20210407132423-4c7c6dd5c895
Source
Go
Version published
Created
Source

Divvy go client

Documentation

A client for the Divvy rate limit server.

Example usage

package main

import (
  divvy "github.com/button/divvy-client-go"
)

limiter := divvy.New(Config{})
res, err := limiter.Hit(map[string]string{
  "foo": "bar",
})
if err != nil {
  log.Println("Error getting divvy response: %v", err)
}
if res.IsAllowed {
  // do your thing
}

Licensed under the MIT license. See LICENSE.txt for full terms.

Copyright 2019 Button, Inc.

FAQs

Package last updated on 07 Apr 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts