Merge pull request #450 from MayurWitsLab/fix/module_name

ft: module_name wrapper middleware
This commit is contained in:
Mayur
2025-04-07 13:11:31 +05:30
committed by GitHub
7 changed files with 39 additions and 1 deletions

View File

@@ -3,8 +3,8 @@ package model
import (
"errors"
"fmt"
"testing"
"net/http"
"testing"
"github.com/stretchr/testify/assert"
"gopkg.in/yaml.v2"

View File

@@ -16,6 +16,10 @@ type Subscriber struct {
Domain string `json:"domain"`
}
type ContextKey string
const ContextKeyModuleId ContextKey = "module_id"
// Subscription represents subscription details of a network participant.
type Subscription struct {
Subscriber `json:",inline"`