Draft: Creating a web hook endpoint to subscribe for policy change
Compare changes
+ 10
− 9
@@ -12,10 +12,10 @@ import (
@@ -23,7 +23,7 @@ const (
@@ -43,6 +43,7 @@ type Policy struct {
@@ -52,10 +53,13 @@ func New(db *mongo.Client, dbname, collection string, logger *zap.Logger) (*Stor
@@ -128,10 +132,7 @@ func (s *Storage) ListenPolicyDataChanges(ctx context.Context) error {