github.com/sandwich-go/boost@v1.3.29/ratelimiter/option.go (about)

     1  package ratelimiter
     2  
     3  import "time"
     4  
     5  //go:generate optionGen  --option_return_previous=false
     6  func OptionsOptionDeclareWithDefault() interface{} {
     7  	return map[string]interface{}{
     8  		"per":   time.Duration(time.Second),
     9  		"Slack": int(10),
    10  	}
    11  }