store

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 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) RegisterUpdateHandler added in v0.8.0

func (dataStore *DataStore) RegisterUpdateHandler(handler UpdateHandler)

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
}

type UpdateHandler added in v0.8.0

type UpdateHandler func()

Jump to

Keyboard shortcuts

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