File tree Expand file tree Collapse file tree 2 files changed +11
-11
lines changed Expand file tree Collapse file tree 2 files changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -14,29 +14,21 @@ var (
14
14
ErrNoSuchKeyFound = fmt .Errorf ("no such key found" )
15
15
)
16
16
17
- // firewallDBs is an interface that groups the RulesDB and PrivacyMapper
18
- // interfaces.
19
- type firewallDBs interface {
20
- RulesDB
21
- PrivacyMapper
22
- ActionDB
23
- }
24
-
25
17
// DB manages the firewall rules database.
26
18
type DB struct {
27
19
started sync.Once
28
20
stopped sync.Once
29
21
30
- firewallDBs
22
+ FirewallDBs
31
23
32
24
cancel fn.Option [context.CancelFunc ]
33
25
}
34
26
35
27
// NewDB creates a new firewall database. For now, it only contains the
36
28
// underlying rules' and privacy mapper databases.
37
- func NewDB (dbs firewallDBs ) * DB {
29
+ func NewDB (dbs FirewallDBs ) * DB {
38
30
return & DB {
39
- firewallDBs : dbs ,
31
+ FirewallDBs : dbs ,
40
32
}
41
33
}
42
34
Original file line number Diff line number Diff line change @@ -134,3 +134,11 @@ type ActionDB interface {
134
134
// and feature name.
135
135
GetActionsReadDB (groupID session.ID , featureName string ) ActionsReadDB
136
136
}
137
+
138
+ // FirewallDBs is an interface that groups the RulesDB, PrivacyMapper and
139
+ // ActionDB interfaces.
140
+ type FirewallDBs interface {
141
+ RulesDB
142
+ PrivacyMapper
143
+ ActionDB
144
+ }
You can’t perform that action at this time.
0 commit comments