debug

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DebugBar

func DebugBar(enable bool) pine.Handler

func Recover

func Recover(r *pine.Application) pine.Handler

Types

type AbstractCollector

type AbstractCollector interface {
	Collect()        // 收集数据
	GetName() string // 收集器名称

	SetContext(ctx *pine.Context)

	GetTitle() any // 前端渲染页面

	GetRoute() string // 路由

	GetWidgets() any // 获取渲染数据

	Destroy()
}

type CollectorMgr

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

func NewCollectorMgr

func NewCollectorMgr(ctx *pine.Context, enable bool) *CollectorMgr

func (*CollectorMgr) BuildHtmlTag

func (mgr *CollectorMgr) BuildHtmlTag() (string, error)

func (*CollectorMgr) Destroy

func (mgr *CollectorMgr) Destroy()

func (*CollectorMgr) Disable

func (mgr *CollectorMgr) Disable()

func (*CollectorMgr) IsEnable

func (mgr *CollectorMgr) IsEnable() bool

func (*CollectorMgr) RegisterCollector

func (mgr *CollectorMgr) RegisterCollector(collectors ...AbstractCollector)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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