fix: module id and linting issues

This commit is contained in:
mayur.popli
2025-04-04 15:39:05 +05:30
parent d1e8716e15
commit 2329efd562
7 changed files with 13 additions and 7 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"`