added test case

This commit is contained in:
MohitKatare-protean
2025-05-06 10:29:23 +05:30
parent ae98cc992f
commit 72f8be52fa
2 changed files with 151 additions and 0 deletions

View File

@@ -8,6 +8,7 @@ type Publisher interface {
Publish(context.Context, string, []byte) error
}
// PublisherProvider is the interface for creating new Publisher instances.
type PublisherProvider interface {
// New initializes a new publisher instance with the given configuration.
New(ctx context.Context, config map[string]string) (Publisher, func() error, error)