Documentation
¶
Index ¶
- func ParseAndPrintData(data []byte, cmd, geoDB string, json bool) error
- func PrintAdmins(admins beparser.Admins) error
- func PrintBans(bans beparser.Bans) error
- func PrintBansGUID(bans beparser.BansGUID) error
- func PrintBansIP(bans beparser.BansIP) error
- func PrintPlayers(players beparser.Players) error
- type TablePrinter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseAndPrintData ¶
parse data for cmd and print as table
func PrintAdmins ¶
print "Admins" response table with geo data
func PrintBansGUID ¶
print "GUID Bans" part of "Bans" table
func PrintBansIP ¶
print "IP Bans" response part of "Bans" table with geo data
func PrintPlayers ¶
print "Players" response table with geo data
Types ¶
type TablePrinter ¶
type TablePrinter struct {
// contains filtered or unexported fields
}
print tables with column alignment
func NewTablePrinter ¶
func NewTablePrinter(headers []string) *TablePrinter
create new table printer
func (*TablePrinter) AddRow ¶
func (tp *TablePrinter) AddRow(row []string) error
insert new row to table
Click to show internal directories.
Click to hide internal directories.