notify

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2023 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NotifyHit

func NotifyHit(correlation_key string)

Types

type Notifier

type Notifier struct {
	Config []types.NotifyConfig
}

func (*Notifier) GetConfig

func (n *Notifier) GetConfig(key string) (value string)

func (*Notifier) SetConfig

func (n *Notifier) SetConfig(key string, value string)

type NotifierInterface

type NotifierInterface interface {
	Notify(hit models.XssHit) error
	CanNotify() bool
	GetBaseInformations() (infos types.NotifierInformation)
	SetConfig(key string, value string)
}

func NotifiersList

func NotifiersList() (ni []NotifierInterface)

type TelegramNotifier

type TelegramNotifier struct {
	Notifier
}

func (*TelegramNotifier) CanNotify

func (n *TelegramNotifier) CanNotify() bool

func (*TelegramNotifier) GetBaseInformations

func (n *TelegramNotifier) GetBaseInformations() (infos types.NotifierInformation)

func (*TelegramNotifier) Notify

func (n *TelegramNotifier) Notify(hit models.XssHit) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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