You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
743 B
28 lines
743 B
package services
|
|
|
|
import (
|
|
"log"
|
|
|
|
"github.com/dustinpianalto/quartermaster"
|
|
"github.com/dustinpianalto/quartermaster/internal/postgres"
|
|
)
|
|
|
|
var (
|
|
ItemService quartermaster.ItemService
|
|
NutritionService quartermaster.NutritionService
|
|
LocationService quartermaster.LocationService
|
|
VitaminService quartermaster.VitaminService
|
|
GroupService quartermaster.GroupService
|
|
CategoryService quartermaster.CategoryService
|
|
)
|
|
|
|
func InitServices() {
|
|
ItemService = postgres.ItemService
|
|
NutritionService = postgres.NutritionService
|
|
LocationService = postgres.LocationService
|
|
VitaminService = postgres.VitaminService
|
|
GroupService = postgres.GroupService
|
|
CategoryService = postgres.CategoryService
|
|
log.Println("Services Initialized")
|
|
}
|