grafana/pkg/stores/sqlstore/sqlstore_datasource.go

21 lines
448 B
Go
Raw Normal View History

2014-12-16 05:04:08 -06:00
package sqlstore
import (
"errors"
"github.com/torkelo/grafana-pro/pkg/bus"
m "github.com/torkelo/grafana-pro/pkg/models"
)
func init() {
2014-12-16 09:45:07 -06:00
bus.AddHandler("sql", GetDataSourcesQuery)
bus.AddHandler("sql", AddDataSource)
2014-12-16 05:04:08 -06:00
}
func GetDataSourcesQuery(query *m.GetDataSourcesQuery) error {
return errors.New("Hello from query handler")
}
2014-12-16 09:45:07 -06:00
func AddDataSource(cmd *m.AddDataSourceCommand) error {
return errors.New("Hello from command handler")
}