mirror of
https://github.com/percona/percona-toolkit.git
synced 2026-02-27 02:00:57 +08:00
44 lines
1.1 KiB
Go
44 lines
1.1 KiB
Go
// This program is copyright 2016-2026 Percona LLC and/or its affiliates.
|
|
//
|
|
// THIS PROGRAM IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED
|
|
// WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
|
|
// MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
|
|
//
|
|
// This program is free software; you can redistribute it and/or modify it under
|
|
// the terms of the GNU General Public License as published by the Free Software
|
|
// Foundation, version 2.
|
|
//
|
|
// You should have received a copy of the GNU General Public License, version 2
|
|
// along with this program; if not, see <https://www.gnu.org/licenses/>.
|
|
|
|
package proto
|
|
|
|
import "time"
|
|
|
|
type ProcInfo struct {
|
|
CreateTime time.Time
|
|
Path string
|
|
UserName string
|
|
Error error
|
|
}
|
|
|
|
type GetHostInfo struct {
|
|
Hostname string
|
|
HostOsType string
|
|
HostSystemCPUArch string
|
|
HostDatabases int
|
|
HostCollections int
|
|
DBPath string
|
|
|
|
ProcPath string
|
|
ProcUserName string
|
|
ProcCreateTime time.Time
|
|
ProcProcessCount int
|
|
|
|
// Server Status
|
|
ProcessName string
|
|
ReplicasetName string
|
|
Version string
|
|
NodeType string
|
|
}
|