19 lines
362 B
Go
19 lines
362 B
Go
|
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,
|
||
|
}
|
||
|
}
|