Versions in this module Expand all Collapse all v0 v0.1.0 Feb 1, 2024 Changes in this version + var Before *basic + var Dbname string + var Ip string + var Password string + var Port string + var Username string + func BeforeRun(in string) error + func CollectEasy() []string + func Colorize(text string, status string, background string, underline bool, highshow bool) string + func CpuLoad() (string, error) + func CpuPercent() (string, error) + func DiskInfo() (string, error) + func FilterTitle(in string, count, interval int) + func FilterValue(in string, num, interval int, mysql *basic) error + func GetBytesColumns() string + func GetBytesTitle() string + func GetComColumns() string + func GetComTitle() string + func GetCpuColumns() string + func GetCpuTitle() string + func GetCurrentInterfaceCommands() ([]prompt.Suggest, error) + func GetDiskColumns() string + func GetDiskTitle() string + func GetHitColumns() string + func GetHitTitle() string + func GetInnodbDataColumns() string + func GetInnodbDataTitle() string + func GetInnodbLogColumns() string + func GetInnodbLogTitle() string + func GetInnodbPagesColumns() string + func GetInnodbPagesTitle() string + func GetInnodbRowsColumns() string + func GetInnodbRowsTitle() string + func GetInnodbStatusColumns() string + func GetInnodbStatusTitle() string + func GetIps() []string + func GetLoadColumns() string + func GetLoadTitle() string + func GetNetColumns(detail bool) string + func GetNetTitle(detail bool) string + func GetNowTime() string + func GetSemiColumns() string + func GetSemiTitle() string + func GetSlaveColumns() string + func GetSlaveTitle() string + func GetSwapColumns() string + func GetSwapTitle() string + func GetThreadsColumns() string + func GetThreadsTitle() string + func GetTimeColumns() string + func GetTimeTitle() string + func MysqlConn(username, password, ip, port, dbname string) (*sql.DB, error) + func NetInfo(detail bool) (string, error) + func NewBasic() *basic + func Prompt(msg string) string + func SwapIO() (string, error) + func TimeNow() (string, error) + type MonitorDisk struct + IoTime uint64 + IopsInProgress uint64 + MergedReadCount uint64 + MergedWriteCount uint64 + ReadBytes uint64 + ReadCount uint64 + ReadTime uint64 + WeightedIO uint64 + WriteBytes uint64 + WriteCount uint64 + WriteTime uint64 + func NewDisk() (*MonitorDisk, error) + func (this *MonitorDisk) Get() error + type MonitorLoad struct + func NewLoad() *MonitorLoad + func (this *MonitorLoad) Get() (string, error) + type MonitorNet struct + BytesRecv uint64 + BytesSent uint64 + Dropin uint64 + Dropout uint64 + Errin uint64 + Errout uint64 + Fifoin uint64 + Fifoout uint64 + PacketsRecv uint64 + PacketsSent uint64 + func NewNet() (*MonitorNet, error) + func (this *MonitorNet) Get() error + func (this *MonitorNet) PrintIps() error + type MonitorSwap struct + func NewSwap() (*MonitorSwap, error) + func (this *MonitorSwap) Get() error