Documentation ¶
Index ¶
- type Backend
- type BackendManager
- func (b *BackendManager) Delete(target string) (int, error)
- func (b *BackendManager) DeleteAll() error
- func (b *BackendManager) Flush() error
- func (b *BackendManager) Insert(sig types.SignalOccurence) error
- func (b *BackendManager) InsertOnePlugin(sig types.SignalOccurence, pluginName string) error
- func (b *BackendManager) IsBackendPlugin(plugin string) bool
- func (b *BackendManager) ReadAT(timeAT time.Time) ([]map[string]string, error)
- type BackendPlugin
- type NotificationManager
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Backend ¶
type Backend interface { Insert(types.SignalOccurence) error ReadAT(time.Time) ([]map[string]string, error) Delete(string) (int, error) Init(map[string]string) error Flush() error DeleteAll() error }
the structure returned by the function New() of the plugin must match this interface
type BackendManager ¶
type BackendManager struct {
// contains filtered or unexported fields
}
func NewBackendPlugin ¶
func NewBackendPlugin(path string, isDaemon bool) (*BackendManager, error)
func (*BackendManager) DeleteAll ¶
func (b *BackendManager) DeleteAll() error
func (*BackendManager) Flush ¶
func (b *BackendManager) Flush() error
func (*BackendManager) Insert ¶
func (b *BackendManager) Insert(sig types.SignalOccurence) error
Insert the signal for all the plugins
func (*BackendManager) InsertOnePlugin ¶
func (b *BackendManager) InsertOnePlugin(sig types.SignalOccurence, pluginName string) error
Insert the signal for the plugin specified in the config["plugin"] parameter
func (*BackendManager) IsBackendPlugin ¶
func (b *BackendManager) IsBackendPlugin(plugin string) bool
type BackendPlugin ¶
type NotificationManager ¶
type NotificationManager struct { }
Click to show internal directories.
Click to hide internal directories.