badactorservice

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2021 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BadActorAction

type BadActorAction struct {
	Logger *logger.Logger
}

func (*BadActorAction) WhenJailed

func (b *BadActorAction) WhenJailed(a *badactor.Actor, r *badactor.Rule) error

func (*BadActorAction) WhenTimeServed

func (b *BadActorAction) WhenTimeServed(a *badactor.Actor, r *badactor.Rule) error

type BadActorService

type BadActorService struct {
	Config Config

	Studio *badactor.Studio

	Logger *logger.Logger
}

func (*BadActorService) Start

func (b *BadActorService) Start() error

type Config

type Config struct {
	MaxAuthAttempts int           `json:"max_auth_attempts,omitempty"`
	JailTime        time.Duration `json:"jail_time,omitempty"`
}

func (*Config) Validate

func (c *Config) Validate() error

Jump to

Keyboard shortcuts

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