Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ElasticsearchStorage ¶
type ElasticsearchStorage struct {
IndexName string
// contains filtered or unexported fields
}
func (*ElasticsearchStorage) DeleteEvent ¶
func (ess *ElasticsearchStorage) DeleteEvent(id string, pubkey string) error
func (*ElasticsearchStorage) Init ¶
func (ess *ElasticsearchStorage) Init() error
func (*ElasticsearchStorage) QueryEvents ¶
type EsSearchResult ¶
type EsSearchResult struct {
Took int
TimedOut bool `json:"timed_out"`
Hits struct {
Total struct {
Value int
Relation string
}
Hits []struct {
Source IndexedEvent `json:"_source"`
}
}
}
type IndexedEvent ¶
Click to show internal directories.
Click to hide internal directories.