stat

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2022 License: MIT Imports: 4 Imported by: 0

README

stat

统计系统和进程的cpu和内存信息。


使用示例

	l, _ := zap.NewDevelopment()
    stat.Init(
        WithLog(l),
        WithPrintInterval(time.Minute),
    )

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(opts ...Option)

Init 初始化

Types

type Option

type Option func(*options)

Option set the options field.

func WithLog

func WithLog(l *zap.Logger) Option

WithLog set zapLog

func WithPrintInterval

func WithPrintInterval(d time.Duration) Option

WithPrintInterval set print interval

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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