detector

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2023 License: MIT Imports: 34 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrInvalidReadyState = errors.New("Invalid ready state")

Functions

This section is empty.

Types

type BD

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

BD is the main application container

func New

func New(ctx context.Context, logger *zap.Logger, settings *model.Settings, store store.DataStore, rules *rules.Engine, cache cache.FsCache) BD

New allocates a new bot detector application instance

func (*BD) AttachGui

func (bd *BD) AttachGui(gui model.UserInterface)

AttachGui connects the backend functions to the frontend gui TODO Use channels for communicating instead

func (*BD) CallVote

func (bd *BD) CallVote(userID int64, reason model.KickReason) error

func (*BD) ExportVoiceBans added in v0.0.8

func (bd *BD) ExportVoiceBans() error

func (*BD) GetPlayer

func (bd *BD) GetPlayer(sid64 steamid.SID64) *model.Player

func (*BD) LaunchGameAndWait

func (bd *BD) LaunchGameAndWait()

func (*BD) OnMark

func (bd *BD) OnMark(sid64 steamid.SID64, attrs []string) error

func (*BD) OnUnMark added in v0.0.8

func (bd *BD) OnUnMark(sid64 steamid.SID64) error

func (*BD) OnWhitelist

func (bd *BD) OnWhitelist(sid64 steamid.SID64, enabled bool) error

func (*BD) SendChat added in v0.0.7

func (bd *BD) SendChat(destination model.ChatDest, format string, args ...any) error

func (*BD) Settings

func (bd *BD) Settings() *model.Settings

func (*BD) Shutdown

func (bd *BD) Shutdown()

Shutdown closes any open rcon connection and will flush any player list to disk

func (*BD) Start

func (bd *BD) Start(ctx context.Context)

func (*BD) Store added in v0.0.8

func (bd *BD) Store() store.DataStore

Jump to

Keyboard shortcuts

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