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 4
4
"fmt"
5
5
6
6
app "github.com/scribd/go-sdk/pkg/app"
7
+ "github.com/scribd/go-sdk/pkg/cache"
7
8
database "github.com/scribd/go-sdk/pkg/database"
8
9
instrumentation "github.com/scribd/go-sdk/pkg/instrumentation"
9
10
logger "github.com/scribd/go-sdk/pkg/logger"
@@ -21,6 +22,7 @@ type Config struct {
21
22
Server * server.Config
22
23
Tracking * tracking.Config
23
24
PubSub * pubsub.Config
25
+ Cache * cache.Config
24
26
}
25
27
26
28
// NewConfig returns a new Config instance
@@ -63,13 +65,19 @@ func NewConfig() (*Config, error) {
63
65
errGroup = wrapErrors (errGroup , fmt .Errorf ("pubsub config err: %w" , err ))
64
66
}
65
67
68
+ cacheConfig , err := cache .NewConfig ()
69
+ if err != nil {
70
+ errGroup = wrapErrors (errGroup , fmt .Errorf ("cache config err: %w" , err ))
71
+ }
72
+
66
73
config .App = appConfig
67
74
config .Database = dbConfig
68
75
config .Instrumentation = instrumentationConfig
69
76
config .Logger = loggerConfig
70
77
config .Server = serverConfig
71
78
config .Tracking = trackingConfig
72
79
config .PubSub = pubsubConfig
80
+ config .Cache = cacheConfig
73
81
74
82
return config , errGroup
75
83
}
You can’t perform that action at this time.
0 commit comments