Documentation
¶
Index ¶
- Variables
- func DisableLog()
- func DumpTable(ctx *server.Context) (interface{}, int)
- func FlushDatabases(ctx *server.Context) (interface{}, int)
- func FlushJournals(ctx *server.Context) (interface{}, int)
- func GcDatabases(ctx *server.Context) (interface{}, int)
- func GetCacheStats(ctx *server.Context) (interface{}, int)
- func GetConfig(ctx *server.Context) (interface{}, int)
- func GetSysStats(ctx *server.Context) (interface{}, int)
- func GetTableStats(ctx *server.Context) (interface{}, int)
- func PurgeCaches(ctx *server.Context) (interface{}, int)
- func RollbackDatabases(ctx *server.Context) (interface{}, int)
- func SnapshotDatabases(ctx *server.Context) (interface{}, int)
- func UpdateLog(ctx *server.Context) (interface{}, int)
- func UseLogger(logger logpkg.Logger)
- type RollbackRequest
- type SysStat
- type SystemRequest
- func (t SystemRequest) Expires() time.Time
- func (t SystemRequest) LastModified() time.Time
- func (t SystemRequest) RESTPath(r *mux.Router) string
- func (t SystemRequest) RESTPrefix() string
- func (t SystemRequest) RegisterDirectRoutes(r *mux.Router) error
- func (t SystemRequest) RegisterRoutes(r *mux.Router) error
Constants ¶
This section is empty.
Variables ¶
View Source
var LoggerMap map[string]logpkg.Logger
Functions ¶
func DisableLog ¶
func DisableLog()
DisableLog disables all library log output. Logging output is disabled by default until UseLogger is called.
func FlushDatabases ¶
func FlushJournals ¶
func GcDatabases ¶
func GetCacheStats ¶
func GetSysStats ¶
func GetTableStats ¶
func PurgeCaches ¶
func RollbackDatabases ¶
func SnapshotDatabases ¶
Types ¶
type RollbackRequest ¶
type SysStat ¶
type SysStat struct { Hostname string `json:"hostname"` ContainerName string `json:"container_name"` Timestamp time.Time `json:"timestamp"` NumCpu int `json:"num_cpu"` NumGoroutine int `json:"num_goroutine"` NumThreads uint64 `json:"num_threads"` TotalMem uint64 `json:"total_mem"` TotalSwap uint64 `json:"total_swap"` VmPageFaults uint64 `json:"vm_page_faults"` VmPeak uint64 `json:"vm_peak"` // Peak virtual memory size. VmSize uint64 `json:"vm_size"` // Virtual memory size. VmSwap uint64 `json:"vm_swap"` // Swapped-out virtual memory size VmRss uint64 `json:"vm_rss"` // Resident set size. (mapped + anon + shm) VmMapped uint64 `json:"vm_map"` // Size of resident file mappings. VmAnon uint64 `json:"vm_anon"` // Size of resident anonymous memory. VmShm uint64 `json:"vm_shm"` // Size of resident shared memory. MemMallocs uint64 `json:"mem_mallocs"` MemFrees uint64 `json:"mem_frees"` MemHeapAlloc uint64 `json:"mem_heap"` MemStackInuse uint64 `json:"mem_stack"` DiskSize uint64 `json:"disk_size"` DiskUsed uint64 `json:"disk_used"` DiskFree uint64 `json:"disk_free"` CpuUser float64 `json:"cpu_user"` CpuSys float64 `json:"cpu_system"` CpuTotal float64 `json:"cpu_total"` }
func GetSysStat ¶
all sizes in bytes https://man7.org/linux/man-pages/man5/proc.5.html
type SystemRequest ¶
type SystemRequest struct{}
func (SystemRequest) Expires ¶
func (t SystemRequest) Expires() time.Time
func (SystemRequest) LastModified ¶
func (t SystemRequest) LastModified() time.Time
func (SystemRequest) RESTPrefix ¶
func (t SystemRequest) RESTPrefix() string
func (SystemRequest) RegisterDirectRoutes ¶
func (t SystemRequest) RegisterDirectRoutes(r *mux.Router) error
func (SystemRequest) RegisterRoutes ¶
func (t SystemRequest) RegisterRoutes(r *mux.Router) error
Click to show internal directories.
Click to hide internal directories.