File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change 5
5
database "github.com/scribd/go-sdk/pkg/database"
6
6
instrumentation "github.com/scribd/go-sdk/pkg/instrumentation"
7
7
logger "github.com/scribd/go-sdk/pkg/logger"
8
+ "github.com/scribd/go-sdk/pkg/pubsub"
8
9
server "github.com/scribd/go-sdk/pkg/server"
9
10
tracking "github.com/scribd/go-sdk/pkg/tracking"
10
11
)
@@ -17,6 +18,7 @@ type Config struct {
17
18
Logger * logger.Config
18
19
Server * server.Config
19
20
Tracking * tracking.Config
21
+ PubSub * pubsub.Config
20
22
}
21
23
22
24
// NewConfig returns a new Config instance
@@ -53,12 +55,18 @@ func NewConfig() (*Config, error) {
53
55
return config , err
54
56
}
55
57
58
+ pubsubConfig , err := pubsub .NewConfig ()
59
+ if err != nil {
60
+ return config , err
61
+ }
62
+
56
63
config .App = appConfig
57
64
config .Database = dbConfig
58
65
config .Instrumentation = instrumentationConfig
59
66
config .Logger = loggerConfig
60
67
config .Server = serverConfig
61
68
config .Tracking = trackingConfig
69
+ config .PubSub = pubsubConfig
62
70
63
71
return config , nil
64
72
}
You can’t perform that action at this time.
0 commit comments