datastores

package
v0.0.0-...-8018e34 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 8, 2015 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

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 (*ElasticsearchDatastore) Edit

func (*ElasticsearchDatastore) Get

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL