File tree Expand file tree Collapse file tree
controller/pdf_generation Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -6,15 +6,15 @@ import (
66 "net/http"
77
88 "github.com/Zomato/espresso/lib/templatestore"
9- "github.com/Zomato/espresso/service/model "
9+ "github.com/Zomato/espresso/service/internal/pkg/config "
1010)
1111
1212type EspressoService struct {
1313 TemplateStorageAdapter * templatestore.StorageAdapter
1414 FileStorageAdapter * templatestore.StorageAdapter
1515}
1616
17- func NewEspressoService (config model .Config ) (* EspressoService , error ) {
17+ func NewEspressoService (config config .Config ) (* EspressoService , error ) {
1818 templateStorageType := config .TemplateStorageConfig .StorageType
1919
2020 if config .AppConfig .EnableUI && templateStorageType != templatestore .StorageAdapterTypeMySQL {
@@ -48,7 +48,7 @@ func NewEspressoService(config model.Config) (*EspressoService, error) {
4848
4949 return & EspressoService {TemplateStorageAdapter : & templateStorageAdapter , FileStorageAdapter : & fileStorageAdapter }, nil
5050}
51- func Register (mux * http.ServeMux , config model .Config ) {
51+ func Register (mux * http.ServeMux , config config .Config ) {
5252 espressoService , err := NewEspressoService (config )
5353 if err != nil {
5454 log .Fatalf ("Failed to initialize PDF service: %v" , err )
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ import (
1111 logger "github.com/Zomato/espresso/lib/logger"
1212 "github.com/Zomato/espresso/lib/workerpool"
1313 "github.com/Zomato/espresso/service/controller/pdf_generation"
14- "github.com/Zomato/espresso/service/internal/config"
14+ "github.com/Zomato/espresso/service/internal/pkg/ config"
1515 "github.com/Zomato/espresso/service/utils"
1616)
1717
You can’t perform that action at this time.
0 commit comments