fusenapi/initalize/service.go

27 lines
646 B
Go
Raw Normal View History

2023-08-14 09:56:06 +00:00
package initalize
import (
"fusenapi/service/repositories"
"github.com/aws/aws-sdk-go/aws/session"
"gorm.io/gorm"
)
type Repositories struct {
ImageHandle repositories.ImageHandle
2023-08-31 03:56:15 +00:00
NewResource repositories.Resource
2023-08-14 09:56:06 +00:00
}
type NewAllRepositorieData struct {
GormDB *gorm.DB
BLMServiceUrl *string
AwsSession *session.Session
}
func NewAllRepositories(newData *NewAllRepositorieData) *Repositories {
return &Repositories{
ImageHandle: repositories.NewImageHandle(newData.GormDB, newData.BLMServiceUrl, newData.AwsSession),
2023-08-31 03:56:15 +00:00
NewResource: repositories.NewResource(newData.GormDB, newData.BLMServiceUrl, newData.AwsSession),
2023-08-14 09:56:06 +00:00
}
}