added gravatar

This commit is contained in:
Torkel Ödegaard
2014-09-22 10:46:56 +02:00
parent ed8f5dbd22
commit b0b77d667c
15 changed files with 212 additions and 23 deletions
+4 -2
View File
@@ -2,6 +2,7 @@ package server
import (
"github.com/torkelo/grafana-pro/pkg/api"
"github.com/torkelo/grafana-pro/pkg/configuration"
"github.com/torkelo/grafana-pro/pkg/stores"
)
@@ -10,9 +11,10 @@ type Server struct {
Store stores.Store
}
func NewServer(port string) (*Server, error) {
func NewServer(cfg *configuration.Cfg) (*Server, error) {
store := stores.New()
httpServer := api.NewHttpServer(port, store)
httpServer := api.NewHttpServer(cfg, store)
return &Server{
HttpServer: httpServer,