mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-23 16:18:44 +05:00
started limiter component
This commit is contained in:
@@ -343,6 +343,7 @@ type TpUser struct {
|
||||
AttributeName string `index:"3" re:""`
|
||||
AttributeValue string `index:"4" re:""`
|
||||
Weight float64 `index:"5" re:""`
|
||||
CreatedAt time.Time
|
||||
}
|
||||
|
||||
func (tu *TpUser) GetId() string {
|
||||
@@ -397,6 +398,20 @@ func (ta *TpAlias) GetId() string {
|
||||
return utils.ConcatenatedKey(ta.Direction, ta.Tenant, ta.Category, ta.Account, ta.Subject, ta.Context)
|
||||
}
|
||||
|
||||
type TpLimiter struct {
|
||||
Id int64
|
||||
Tpid string
|
||||
LimiterID string `index:"0" re:""`
|
||||
ResourceID string `index:"1" re:""`
|
||||
Filter string `index:"2" re:""`
|
||||
TTL string `index:"3" re:""`
|
||||
TimingIDs string `index:"4" re:""`
|
||||
ActivationTime string `index:"5" re:""`
|
||||
Limit float64 `index:"6" re:""`
|
||||
ActionTriggers string `index:"7" re:""`
|
||||
CreatedAt time.Time `index:"8" re:""`
|
||||
}
|
||||
|
||||
type TBLCDRs struct {
|
||||
ID int64
|
||||
Cgrid string
|
||||
|
||||
Reference in New Issue
Block a user