groups-management/handlers/handlers.go

19 lines
362 B
Go
Raw Normal View History

2022-08-11 15:21:32 +00:00
package handlers
import (
"git.coopgo.io/coopgo-platform/groups-management/storage"
"github.com/spf13/viper"
)
type GroupsManagementHandler struct {
config *viper.Viper
storage storage.Storage
}
func NewHandler(cfg *viper.Viper, storage storage.Storage) GroupsManagementHandler {
return GroupsManagementHandler{
config: cfg,
storage: storage,
}
}