19 lines
321 B
Go
19 lines
321 B
Go
package handlers
|
|
|
|
import (
|
|
"git.coopgo.io/coopgo-platform/agenda/storage"
|
|
"github.com/spf13/viper"
|
|
)
|
|
|
|
type AgendaHandler struct {
|
|
config *viper.Viper
|
|
storage storage.Storage
|
|
}
|
|
|
|
func NewHandler(cfg *viper.Viper, storage storage.Storage) AgendaHandler {
|
|
return AgendaHandler{
|
|
config: cfg,
|
|
storage: storage,
|
|
}
|
|
}
|