Documentation ¶
Index ¶
- func Sanitize(jsondata string) string
- type ElasticClient
- func (ec *ElasticClient) Create(indexname string, indextype IndexType, jsondata string) (string, error)
- func (ec *ElasticClient) CreateIndex(index string, mapping string)
- func (ec *ElasticClient) Delete(indexname string, indextype IndexType, id string) error
- func (ec *ElasticClient) DeleteIndex(index string) error
- func (ec *ElasticClient) Get(indexname string, indextype IndexType, id string) (*elastic.GetResult, error)
- func (ec *ElasticClient) InitAllMappings()
- func (ec *ElasticClient) Search(indexname string) *elastic.SearchResult
- func (ec *ElasticClient) Update()
- type EventNotification
- type IndexName
- type IndexType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ElasticClient ¶
type ElasticClient struct {
// contains filtered or unexported fields
}
ElasticClient ....
func CreateClient ¶
func CreateClient(elastichost string, resetIndex bool, debug bool) *ElasticClient
CreateClient ....
func (*ElasticClient) Create ¶
func (ec *ElasticClient) Create(indexname string, indextype IndexType, jsondata string) (string, error)
Create ... it can be BodyJson or BodyString.. BodyJson needs struct defined
func (*ElasticClient) CreateIndex ¶
func (ec *ElasticClient) CreateIndex(index string, mapping string)
CreateIndex ...
func (*ElasticClient) Delete ¶
func (ec *ElasticClient) Delete(indexname string, indextype IndexType, id string) error
Delete ....
func (*ElasticClient) DeleteIndex ¶
func (ec *ElasticClient) DeleteIndex(index string) error
DeleteIndex ...
func (*ElasticClient) Get ¶
func (ec *ElasticClient) Get(indexname string, indextype IndexType, id string) (*elastic.GetResult, error)
Get ....
func (*ElasticClient) InitAllMappings ¶
func (ec *ElasticClient) InitAllMappings()
InitAllMappings ....
func (*ElasticClient) Search ¶
func (ec *ElasticClient) Search(indexname string) *elastic.SearchResult
Search ..
type EventNotification ¶
type EventNotification struct { Labels func() interface{} Annotations func() interface{} StartsAt string }
EventNotification ....
Click to show internal directories.
Click to hide internal directories.