Documentation ¶
Index ¶
- Constants
- type ElasticsearchDatastore
- func (e *ElasticsearchDatastore) Add(dboard schemas.Dashboard) error
- func (e *ElasticsearchDatastore) Edit(dboard schemas.Dashboard) error
- func (e *ElasticsearchDatastore) Get(_id string) (*schemas.Dashboard, error)
- func (e *ElasticsearchDatastore) List() []map[string]interface{}
- func (e *ElasticsearchDatastore) Remove(_id string) error
- type EssMapping
- type IDashboardDatastore
Constants ¶
View Source
const ESS_DEFAULT_RESULT_SIZE int = 10000000
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ElasticsearchDatastore ¶
type ElasticsearchDatastore struct {
// contains filtered or unexported fields
}
func NewElasticsearchDatastore ¶
func NewElasticsearchDatastore(cfg *config.DatastoreConfig, logger *simplelog.Logger) (*ElasticsearchDatastore, error)
func (*ElasticsearchDatastore) Add ¶
func (e *ElasticsearchDatastore) Add(dboard schemas.Dashboard) error
func (*ElasticsearchDatastore) Edit ¶
func (e *ElasticsearchDatastore) Edit(dboard schemas.Dashboard) error
func (*ElasticsearchDatastore) Get ¶
func (e *ElasticsearchDatastore) Get(_id string) (*schemas.Dashboard, error)
func (*ElasticsearchDatastore) List ¶
func (e *ElasticsearchDatastore) List() []map[string]interface{}
func (*ElasticsearchDatastore) Remove ¶
func (e *ElasticsearchDatastore) Remove(_id string) error
type EssMapping ¶
type EssMapping struct { Meta map[string]interface{} `json:"_meta"` DynamicTemplates []interface{} `json:"dynamic_templates"` }
type IDashboardDatastore ¶
type IDashboardDatastore interface { List() []map[string]interface{} Get(string) (*schemas.Dashboard, error) Add(schemas.Dashboard) error Remove(string) error Edit(schemas.Dashboard) error }
func LoadDatastore ¶
func LoadDatastore(cfg *config.DatastoreConfig, logger *simplelog.Logger) (IDashboardDatastore, error)
Click to show internal directories.
Click to hide internal directories.