debug

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Debugger

type Debugger interface {
	// Init 初始化
	Init() error

	// Event 接收事件
	Event(e *Event)
}

Debugger 调试器接口

type Event

type Event struct {
	// Type 事件类型
	Type string

	// CollectorID Collector标识符
	CollectorID uint32

	// RequestID 请求标识符
	RequestID uint32

	// Values 事件值
	Values map[string]string
}

Event Collector事件类

type LogDebugger

type LogDebugger struct {
	// Output 输出器(留空为STDERR)
	Output io.Writer

	// Prefix 日志前缀
	Prefix string

	// Flag 日志属性
	Flag int
	// contains filtered or unexported fields
}

LogDebugger 日志调试器

func (*LogDebugger) Event

func (l *LogDebugger) Event(e *Event)

Event 接收事件

func (*LogDebugger) Init

func (l *LogDebugger) Init() error

Init 初始化

Jump to

Keyboard shortcuts

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