Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CacheSyncScript ¶
type CacheSyncScript struct {
// contains filtered or unexported fields
}
func (CacheSyncScript) Index ¶
func (s CacheSyncScript) Index() string
func (CacheSyncScript) PluginName ¶
func (s CacheSyncScript) PluginName() string
func (CacheSyncScript) SetCache ¶
func (s CacheSyncScript) SetCache(response *elastic.SearchResult) error
type Sync ¶
type Sync struct {
// contains filtered or unexported fields
}
func Instance ¶
func Instance() *Sync
Instance returns the singleton instance of Sync plugin. Note: Only this function must be used (both within and outside the package) to obtain the instance Sync in order to avoid stateless instances of the plugin.
func (*Sync) AlternateRoutes ¶
Expose plugin specific routes
func (*Sync) ESMiddleware ¶
func (p *Sync) ESMiddleware() []middleware.Middleware
ESMiddleware is a default empty middleware function
func (*Sync) InitFunc ¶
InitFunc is a part of Plugin interface that gets executed only once, and initializes the dao, i.e. elasticsearch before the plugin is operational.
func (*Sync) RSMiddleware ¶
func (p *Sync) RSMiddleware() []middleware.Middleware
RSMiddleware is a default empty middleware function
type SyncPreferences ¶
type SyncPreferences struct {
Interval *int `json:"interval,omitempty"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.