sync

package
v0.0.0-...-0fffe9f Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2026 License: Apache-2.0 Imports: 17 Imported by: 0

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

func (p *Sync) AlternateRoutes() []plugins.Route

Expose plugin specific routes

func (*Sync) ESMiddleware

func (p *Sync) ESMiddleware() []middleware.Middleware

ESMiddleware is a default empty middleware function

func (*Sync) InitFunc

func (p *Sync) InitFunc() error

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) Name

func (p *Sync) Name() string

Name returns the name of the plugin

func (*Sync) RSMiddleware

func (p *Sync) RSMiddleware() []middleware.Middleware

RSMiddleware is a default empty middleware function

func (*Sync) Routes

func (p *Sync) Routes() []plugins.Route

Routes returns an empty slice of routes, since Logs is solely a middleware.

type SyncPreferences

type SyncPreferences struct {
	Interval *int `json:"interval,omitempty"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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