Documentation ¶
Index ¶
- Constants
- Variables
- func ActionsManager(concurrency int)
- func ClientFlush(format, streamName, filterName string, patterns []string)
- func ClientShow(format, stream, filter string, kvpatterns []string)
- func Daemon(confFilename string)
- func DatabaseManager(c *Conf)
- func Main(version, commit string)
- func MatchesManager()
- func SocketManager(conf *Conf)
- func StreamManager(s *Stream, endedSignal chan *Stream)
- func TestRegex(confFilename, regex, line string)
- func WithBrackets(mm []string) string
- type Action
- type ActionsMap
- type ClientStatus
- type ClientStatusFlush
- type Conf
- type Filter
- type LilAction
- type LilFilter
- type LilStream
- type LogEntry
- type MapPatternStatus
- type MapPatternStatusFlush
- type Match
- type MatchesMap
- type PA
- type PAT
- type PF
- type PFT
- type PSF
- type Pattern
- type PatternStatus
- type ReadDB
- type Request
- type Response
- type SF
- type Stream
- type WriteDB
Constants ¶
View Source
const ( Info = 0 Flush = 1 )
Variables ¶
View Source
var SocketPath *string
Functions ¶
func ActionsManager ¶
func ActionsManager(concurrency int)
func ClientFlush ¶
TODO : Show values we just flushed - for now we got no details :
- % ./reaction flush -l ssh.failedlogin login=".*t"
- ssh:
- failedlogin:
- actions:
- unban:
- - "2024-04-30 15:27:28"
- - "2024-04-30 15:27:28"
- - "2024-04-30 15:27:28"
- - "2024-04-30 15:27:28" *
func ClientShow ¶
func DatabaseManager ¶
func DatabaseManager(c *Conf)
func MatchesManager ¶
func MatchesManager()
func SocketManager ¶
func SocketManager(conf *Conf)
Handle connections func SocketManager(streams map[string]*Stream) {
func StreamManager ¶
func WithBrackets ¶ added in v1.4.0
Types ¶
type Action ¶
type ActionsMap ¶
type ClientStatus ¶
type ClientStatus map[string]map[string]MapPatternStatus
type ClientStatusFlush ¶
type ClientStatusFlush ClientStatus
func (ClientStatusFlush) MarshalJSON ¶
func (csf ClientStatusFlush) MarshalJSON() ([]byte, error)
type Conf ¶
type Filter ¶
type LilFilter ¶ added in v1.4.0
those small versions are needed to prevent infinite recursion in gob because of data cycles: Stream <-> Filter, Filter <-> Action
type MapPatternStatus ¶
type MapPatternStatus map[Match]*PatternStatus
type MapPatternStatusFlush ¶
type MapPatternStatusFlush MapPatternStatus
func (MapPatternStatusFlush) MarshalJSON ¶
func (mps MapPatternStatusFlush) MarshalJSON() ([]byte, error)
type MatchesMap ¶
type PatternStatus ¶
type Response ¶
type Response struct { Err error // Config Conf Matches MatchesMap Actions ActionsMap }
func SendAndRetrieve ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.