NewLimit creates a new limit.
(name string, value int)
| 760 | |
| 761 | // NewLimit creates a new limit. |
| 762 | func NewLimit(name string, value int) *Limit { |
| 763 | return &Limit{name, value} |
| 764 | } |
| 765 | |
| 766 | // Validate validates a limit. |
| 767 | func (l *Limit) Validate() error { |
no outgoing calls