Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ComponentInfoDTO ¶
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 ¶
func (inst *DevtoolsController) Init(e glass.EngineConnection) error
Init 初始化控制器
type ModuleInfoDTO ¶
type RequestAccumulator ¶
type RequestAccumulator struct {
// contains filtered or unexported fields
}
RequestAccumulator 请求累加器
func (*RequestAccumulator) Add ¶
func (inst *RequestAccumulator) Add(rec *RequestRecordDTO) *RequestEndpoint
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 ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.