store

package
v0.7.7 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DataStore

type DataStore struct {
	// contains filtered or unexported fields
}

func NewDataStore

func NewDataStore(f2bc *client.Fail2BanClient, refreshSeconds int) *DataStore

func (*DataStore) GetJailByName added in v0.5.0

func (dataStore *DataStore) GetJailByName(jailName string) (Jail, bool)

func (*DataStore) GetJails

func (dataStore *DataStore) GetJails() []Jail

func (*DataStore) Start added in v0.1.0

func (dataStore *DataStore) Start()

type Jail added in v0.5.0

type Jail struct {
	Name            string
	BannedCount     int
	BannedEntries   []client.BanEntry
	CurrentlyFailed int
	TotalFailed     int
	CurrentlyBanned int
	TotalBanned     int
}

Jump to

Keyboard shortcuts

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