started work datasources admin

This commit is contained in:
Torkel Ödegaard
2014-12-16 12:04:08 +01:00
parent f665a30d28
commit b70a3f0958
14 changed files with 104 additions and 21 deletions

35
pkg/models/datasource.go Normal file
View File

@ -0,0 +1,35 @@
package models
import "time"
const (
DS_GRAPHITE = "GRAPHITE"
DS_INFLUXDB = "INFLUXDB"
DS_ES = "ES"
DS_ACESSS_DIRECT = "DIRECT"
DS_ACESSS_PROXY = "PROXY"
)
type DsType string
type DsAccess string
type DataSource struct {
Id int64
AccountId int64
Name string
Type DsType
Access DsAccess
Url string
Password string
User string
BasicAuth bool
Created time.Time
Updated time.Time
}
type GetDataSourcesQuery struct {
AccountId int64
Resp []*DataSource
}