started limiter component

This commit is contained in:
Radu Ioan Fericean
2016-03-11 21:49:57 +02:00
parent add958cc71
commit b6c4b4842c

View File

@@ -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