Documentation
¶
Index ¶
- Variables
- type BD
- func (bd *BD) AttachGui(gui model.UserInterface)
- func (bd *BD) CallVote(userID int64, reason model.KickReason) error
- func (bd *BD) ExportVoiceBans() error
- func (bd *BD) GetPlayer(sid64 steamid.SID64) *model.Player
- func (bd *BD) LaunchGameAndWait()
- func (bd *BD) OnMark(sid64 steamid.SID64, attrs []string) error
- func (bd *BD) OnUnMark(sid64 steamid.SID64) error
- func (bd *BD) OnWhitelist(sid64 steamid.SID64, enabled bool) error
- func (bd *BD) SendChat(destination model.ChatDest, format string, args ...any) error
- func (bd *BD) Settings() *model.Settings
- func (bd *BD) Shutdown()
- func (bd *BD) Start(ctx context.Context)
- func (bd *BD) Store() store.DataStore
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) ExportVoiceBans ¶ added in v0.0.8
func (*BD) LaunchGameAndWait ¶
func (bd *BD) LaunchGameAndWait()
Source Files
¶
Click to show internal directories.
Click to hide internal directories.