Documentation ¶
Overview ¶
Package ui provides a simple, cross-platform interface to the bot detector tool
TODO - Use external data map/struct(?) for table data updates - Remove old players from state on configurable delay
Index ¶
- Constants
- func New(ctx context.Context, logger *zap.Logger, bd *detector.BD, ...) model.UserInterface
- type MenuCreator
- type Ui
- func (ui *Ui) AddUserMessage(msg model.UserMessage)
- func (ui *Ui) Quit()
- func (ui *Ui) Refresh()
- func (ui *Ui) SetAvatar(sid64 steamid.SID64, data []byte)
- func (ui *Ui) Start(ctx context.Context)
- func (ui *Ui) UpdateAttributes(attrs []string)
- func (ui *Ui) UpdatePlayerState(collection model.PlayerCollection)
- func (ui *Ui) UpdateServerState(state model.Server)
Constants ¶
View Source
const (
AppId = "com.github.leighmacdonald.bd"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type MenuCreator ¶
type Ui ¶
type Ui struct {
// contains filtered or unexported fields
}
func (*Ui) AddUserMessage ¶
func (ui *Ui) AddUserMessage(msg model.UserMessage)
func (*Ui) UpdateAttributes ¶
func (*Ui) UpdatePlayerState ¶
func (ui *Ui) UpdatePlayerState(collection model.PlayerCollection)
func (*Ui) UpdateServerState ¶
Click to show internal directories.
Click to hide internal directories.