Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Database ¶
type Database interface { SaveRule(context.Context, *Rule) error FindRuleById(context.Context, primitive.ObjectID) (*Rule, error) FindRulesByOwnerId(ctx context.Context, ownerType apiPb.ComponentOwnerType, ownerId primitive.ObjectID) ([]*Rule, error) RemoveRule(ctx context.Context, ruleId primitive.ObjectID) (*Rule, error) ActivateRule(ctx context.Context, ruleId primitive.ObjectID) (*Rule, error) DeactivateRule(ctx context.Context, ruleId primitive.ObjectID) (*Rule, error) }
func New ¶
func New(mongo mongo_helper.Connector) Database
Click to show internal directories.
Click to hide internal directories.