Initial commit
This commit is contained in:
18
handlers/handlers.go
Normal file
18
handlers/handlers.go
Normal file
@@ -0,0 +1,18 @@
|
||||
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,
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user