proc

package
v0.0.0-...-eb553c6 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2026 License: GPL-3.0 Imports: 21 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package proc watch process status

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EchartsJS

func EchartsJS() []byte

func LocalEchartsJS

func LocalEchartsJS(htmlpage []byte) []byte

func SetupBarSOpts

func SetupBarSOpts(lopt ...charts.SeriesOpts) []charts.SeriesOpts

func SetupLineGOpts

func SetupLineGOpts(lopt *LineOpt) []charts.GlobalOpts

func SetupLineSOpts

func SetupLineSOpts(lopt ...charts.SeriesOpts) []charts.SeriesOpts

func SetupYAxisOpts

func SetupYAxisOpts(lopt ...YAxisOpt) []opts.YAxis

Types

type LineOpt

type LineOpt struct {
	PageTitle   string
	Name        string
	TTFormatter string
	YFormatter  string
	Width       string
	Heigh       string
	Total       float32
	PageCount   float32
}

type RecordOpt

type RecordOpt struct {
	Logg        logger.Logger
	Timer       time.Duration
	DataTimeout time.Duration
	Name        string
	SaveFile    string
}

type Recorder

type Recorder struct {
	// contains filtered or unexported fields
}

func StartRecord

func StartRecord(opt *RecordOpt) *Recorder

StartRecord 记录进程状态

func (*Recorder) BuildLines

func (r *Recorder) BuildLines(width string, js []*procStatus) []byte

func (*Recorder) Export

func (r *Recorder) Export() []byte

func (*Recorder) GinHandler

func (r *Recorder) GinHandler(c *gin.Context)

func (*Recorder) HTTPHandler

func (r *Recorder) HTTPHandler(w http.ResponseWriter, req *http.Request)

func (*Recorder) LastHTML

func (r *Recorder) LastHTML() string

func (*Recorder) LastJSON

func (r *Recorder) LastJSON() string

func (*Recorder) LastString

func (r *Recorder) LastString() string

type YAxisOpt

type YAxisOpt struct {
	Name        string
	Formatter   string
	Align       string
	SplitNumber int
	SplitLine   bool
	SplitArea   bool
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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