debug

package
v0.0.15 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Debug

type Debug struct {
	Level       int      `json:"-"`
	Name        string   `json:"name"`
	FieldName   string   `json:"field_name,omitempty"`
	Msg         []string `json:"msg,omitempty"`
	Node        []*Debug `json:"node,omitempty"`
	NextCounter int      `json:"nextCounter"`
	LECounter   int      `json:"leCounter"`
}

func NewDebug

func NewDebug(level int, name string) *Debug

func (*Debug) AddDebug

func (d *Debug) AddDebug(debug ...*Debug)

func (*Debug) AddDebugMsg

func (d *Debug) AddDebugMsg(msg ...string)

func (*Debug) String

func (d *Debug) String() string

type Debugs

type Debugs struct {
	DebugInfo *Debug // debug info
	CurNum    int    // Current() transfer times
	NextNum   int    // Next() transfer times
	GetNum    int    // GetGE() transfer times
}

func NewDebugs

func NewDebugs(debug *Debug) *Debugs

Jump to

Keyboard shortcuts

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