@@ -109,19 +109,19 @@ type RuleAction struct {
109109 PerformedAt time.Time
110110}
111111
112- // ActionsDB represents a DB backend that contains Action entries that can
112+ // ActionsListDB represents a DB backend that contains Action entries that can
113113// be queried. It allows us to abstract away the details of the data storage
114114// method.
115- type ActionsDB interface {
115+ type ActionsListDB interface {
116116 // ListActions returns a list of past Action items.
117117 ListActions (ctx context.Context ) ([]* RuleAction , error )
118118}
119119
120120// ActionsReadDB is an abstraction gives a caller access to either a group
121121// specific or group and feature specific rules.ActionDB.
122122type ActionsReadDB interface {
123- GroupActionsDB () ActionsDB
124- GroupFeatureActionsDB () ActionsDB
123+ GroupActionsDB () ActionsListDB
124+ GroupFeatureActionsDB () ActionsListDB
125125}
126126
127127// ActionReadDBGetter represents a function that can be used to construct
@@ -150,25 +150,25 @@ type allActionsReadDB struct {
150150
151151var _ ActionsReadDB = (* allActionsReadDB )(nil )
152152
153- // GroupActionsDB returns a rules.ActionsDB that will give the caller access
153+ // GroupActionsDB returns a rules.ActionsListDB that will give the caller access
154154// to all of a groups Actions.
155- func (a * allActionsReadDB ) GroupActionsDB () ActionsDB {
155+ func (a * allActionsReadDB ) GroupActionsDB () ActionsListDB {
156156 return & groupActionsReadDB {a }
157157}
158158
159- // GroupFeatureActionsDB returns a rules.ActionsDB that will give the caller
159+ // GroupFeatureActionsDB returns a rules.ActionsListDB that will give the caller
160160// access to only a specific features Actions in a specific group.
161- func (a * allActionsReadDB ) GroupFeatureActionsDB () ActionsDB {
161+ func (a * allActionsReadDB ) GroupFeatureActionsDB () ActionsListDB {
162162 return & groupFeatureActionsReadDB {a }
163163}
164164
165- // groupActionsReadDB is an implementation of the rules.ActionsDB that will
165+ // groupActionsReadDB is an implementation of the rules.ActionsListDB that will
166166// provide read access to all the Actions of a particular group.
167167type groupActionsReadDB struct {
168168 * allActionsReadDB
169169}
170170
171- var _ ActionsDB = (* groupActionsReadDB )(nil )
171+ var _ ActionsListDB = (* groupActionsReadDB )(nil )
172172
173173// ListActions will return all the Actions for a particular group.
174174func (s * groupActionsReadDB ) ListActions (ctx context.Context ) ([]* RuleAction ,
@@ -191,14 +191,14 @@ func (s *groupActionsReadDB) ListActions(ctx context.Context) ([]*RuleAction,
191191 return actions , nil
192192}
193193
194- // groupFeatureActionsReadDB is an implementation of the rules.ActionsDB that
194+ // groupFeatureActionsReadDB is an implementation of the rules.ActionsListDB that
195195// will provide read access to all the Actions of a feature within a particular
196196// group.
197197type groupFeatureActionsReadDB struct {
198198 * allActionsReadDB
199199}
200200
201- var _ ActionsDB = (* groupFeatureActionsReadDB )(nil )
201+ var _ ActionsListDB = (* groupFeatureActionsReadDB )(nil )
202202
203203// ListActions will return all the Actions for a particular group that were
204204// executed by a particular feature.
0 commit comments