remove unnecessary config

This commit is contained in:
Pedro Nasser
2016-08-26 23:04:12 -03:00
parent ae2b12034d
commit 609d767c3f
4 changed files with 8 additions and 17 deletions

View File

@@ -20,16 +20,14 @@ var Api *Server
type Server struct {
Runner *runner.Runner
Router *gin.Engine
Config *models.Config
Datastore models.Datastore
AppListeners []ifaces.AppListener
SpecialHandlers []ifaces.SpecialHandler
}
func New(c *models.Config, ds models.Datastore, r *runner.Runner) *Server {
func New(ds models.Datastore, r *runner.Runner) *Server {
Api = &Server{
Router: gin.Default(),
Config: c,
Datastore: ds,
Runner: r,
}