File tree Expand file tree Collapse file tree 2 files changed +10
-10
lines changed Expand file tree Collapse file tree 2 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -14,28 +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
- }
23
-
24
17
// DB manages the firewall rules database.
25
18
type DB struct {
26
19
started sync.Once
27
20
stopped sync.Once
28
21
29
- firewallDBs
22
+ FirewallDBs
30
23
31
24
cancel fn.Option [context.CancelFunc ]
32
25
}
33
26
34
27
// NewDB creates a new firewall database. For now, it only contains the
35
28
// underlying rules' and privacy mapper databases.
36
- func NewDB (dbs firewallDBs ) * DB {
29
+ func NewDB (dbs FirewallDBs ) * DB {
37
30
return & DB {
38
- firewallDBs : dbs ,
31
+ FirewallDBs : dbs ,
39
32
}
40
33
}
41
34
Original file line number Diff line number Diff line change @@ -134,3 +134,10 @@ 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 and PrivacyMapper
139
+ // interfaces.
140
+ type FirewallDBs interface {
141
+ RulesDB
142
+ PrivacyMapper
143
+ }
You can’t perform that action at this time.
0 commit comments