printer

package
v0.0.0-...-1b459b2 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2025 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseAndPrintData

func ParseAndPrintData(data []byte, cmd, geoDB string, json bool) error

parse data for cmd and print as table

func PrintAdmins

func PrintAdmins(admins beparser.Admins) error

print "Admins" response table with geo data

func PrintBans

func PrintBans(bans beparser.Bans) error

print "Bans" response table with geo data

func PrintBansGUID

func PrintBansGUID(bans beparser.BansGUID) error

print "GUID Bans" part of "Bans" table

func PrintBansIP

func PrintBansIP(bans beparser.BansIP) error

print "IP Bans" response part of "Bans" table with geo data

func PrintPlayers

func PrintPlayers(players beparser.Players) error

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

func (*TablePrinter) Print

func (tp *TablePrinter) Print()

print table

Jump to

Keyboard shortcuts

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