refdata/api/handler/handler.go

14 lines
229 B
Go
Raw Permalink Normal View History

2018-03-28 01:29:06 +02:00
package handler
import "git.icod.de/dalu/refdata/api/repo"
type Handler struct {
dataRepo *repo.DataRepository
}
func NewHandler(dataRepo *repo.DataRepository) *Handler {
h := new(Handler)
h.dataRepo = dataRepo
return h
}