devtools

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: May 1, 2023 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExportResources

func ExportResources() collection.Resources

ExportResources 导出资源组

Types

type ComponentInfoDTO

type ComponentInfoDTO struct {
	Type  string
	ID    string
	Class []string
	Scope string
}

type DevtoolsController

type DevtoolsController struct {
	markup.Component `class:"rest-controller"`

	AppContext application.Context `inject:"context"`
	Enable     bool                `inject:"${web.devtools.enable}"`
	// contains filtered or unexported fields
}

DevtoolsController 是一个REST控制器,用来显示调试信息

func (*DevtoolsController) Init

Init 初始化控制器

type ModuleInfoDTO

type ModuleInfoDTO struct {
	Index    string
	Name     string
	Revision string
	Version  string
}

type RequestAccumulator

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

RequestAccumulator 请求累加器

func (*RequestAccumulator) Add

type RequestEndpoint

type RequestEndpoint struct {
	Method string
	Path   string

	Count        int64
	FirstRequest *RequestRecordDTO
	LastRequest  *RequestRecordDTO
}

RequestEndpoint

func (*RequestEndpoint) Add

func (inst *RequestEndpoint) Add(rec *RequestRecordDTO) int64

Add 添加记录

func (*RequestEndpoint) GetResult

func (inst *RequestEndpoint) GetResult() *RequestSumDTO

GetResult 取结果

type RequestRecordDTO

type RequestRecordDTO struct {
	TimeBegin int64
	TimeEnd   int64
	Method    string
	Path      string
}

type RequestSumDTO

type RequestSumDTO struct {
	TimeBegin int64
	TimeEnd   int64
	Count     int64
	Method    string
	Path      string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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