add unloading all requests

This commit is contained in:
DeniskaRediska committed 2019-11-19 19:02:17 +03:00
1 parent 8af97e56d7
commit 37c08f4500
13 files changed
+191 -6

No files matched your search

+12 -1
View File
@@ -1,9 +1,20 @@
package entity
import "isp-gate-service/accounting/state"
import (
"isp-gate-service/accounting/state"
"time"
)
type Snapshot struct {
TableName string `sql:"gate_service.snapshot" json:"-"`
AppId int32 `sql:",pk"`
LimitState map[string]state.Snapshot
}
type Unload struct {
TableName string `sql:"gate_service.unload" json:"-"`
Id int `sql:",pk"`
AppId int32
Method string
CreatedAt time.Time
}