/
migrator_datadb.go
75 lines (66 loc) · 3 KB
/
migrator_datadb.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
/*
Real-time Online/Offline Charging System (OCS) for Telecom & ISP environments
Copyright (C) ITsysCOM GmbH
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>
*/
package migrator
import (
"github.com/cgrates/cgrates/engine"
)
type MigratorDataDB interface {
getv1Account() (v1Acnt *v1Account, err error)
setV1Account(x *v1Account) (err error)
remV1Account(id string) (err error)
getV1ActionPlans() (v1aps *v1ActionPlans, err error)
setV1ActionPlans(x *v1ActionPlans) (err error)
getV1Actions() (v1acs *v1Actions, err error)
setV1Actions(x *v1Actions) (err error)
getV1ActionTriggers() (v1acts *v1ActionTriggers, err error)
setV1ActionTriggers(x *v1ActionTriggers) (err error)
getV1SharedGroup() (v1acts *v1SharedGroup, err error)
setV1SharedGroup(x *v1SharedGroup) (err error)
getV1Stats() (v1st *v1Stat, err error)
setV1Stats(x *v1Stat) (err error)
getV2ActionTrigger() (v2at *v2ActionTrigger, err error)
setV2ActionTrigger(x *v2ActionTrigger) (err error)
getv2Account() (v2Acnt *v2Account, err error)
setV2Account(x *v2Account) (err error)
remV2Account(id string) (err error)
getV1AttributeProfile() (v1attrPrf *v1AttributeProfile, err error)
setV1AttributeProfile(x *v1AttributeProfile) (err error)
getV2ThresholdProfile() (v2T *v2Threshold, err error)
setV2ThresholdProfile(x *v2Threshold) (err error)
remV2ThresholdProfile(tenant, id string) (err error)
getV1Alias() (v1a *v1Alias, err error)
setV1Alias(al *v1Alias) (err error)
remV1Alias(key string) (err error)
getV1User() (v1u *v1UserProfile, err error)
setV1User(us *v1UserProfile) (err error)
remV1User(key string) (err error)
getV1DerivedChargers() (v1d *v1DerivedChargersWithKey, err error)
setV1DerivedChargers(dc *v1DerivedChargersWithKey) (err error)
remV1DerivedChargers(key string) (err error)
getV2AttributeProfile() (v2attrPrf *v2AttributeProfile, err error)
setV2AttributeProfile(x *v2AttributeProfile) (err error)
remV2AttributeProfile(tenant, id string) (err error)
getV3AttributeProfile() (v3attrPrf *v3AttributeProfile, err error)
setV3AttributeProfile(x *v3AttributeProfile) (err error)
remV3AttributeProfile(tenant, id string) (err error)
getV4AttributeProfile() (v4attrPrf *v4AttributeProfile, err error)
setV4AttributeProfile(x *v4AttributeProfile) (err error)
remV4AttributeProfile(tenant, id string) (err error)
getV1Filter() (v1Fltr *v1Filter, err error)
setV1Filter(x *v1Filter) (err error)
remV1Filter(tenant, id string) (err error)
DataManager() *engine.DataManager
close()
}