Documentation ¶
Index ¶
- Constants
- type Debug
- func (d *Debug) Error() error
- func (d *Debug) MoreTo() string
- func (d *Debug) String() string
- func (d *Debug) WithDetail(detail string) *Debug
- func (d *Debug) WithDetailFormat(format string, a ...interface{}) *Debug
- func (d *Debug) WithErrMsg(er string) *Debug
- func (d *Debug) WithError(er error) *Debug
- func (d *Debug) WithLevel(l Level) *Debug
- func (d *Debug) WithModule(module string) *Debug
- func (d *Debug) WithMore(more string) *Debug
- func (d *Debug) WithMoreFormat(more string, a ...interface{}) *Debug
- func (d *Debug) WithName(name string) *Debug
- func (d *Debug) WithStack() *Debug
- func (d *Debug) WithTitle(title string) *Debug
- type Level
Constants ¶
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Debug ¶
type Debug struct { Code int32 `json:"code"` Title string `json:"title"` Name string `json:"name"` //服务名称 Module string `json:"module"` //模板名 Detail string `json:"detail"` //简单描述 Stack string `json:"stack"` //调用堆栈 More string `json:"more"` //更多 Level Level `json:"level"` //级别(严重程度) ErrMsg string `json:"errMsg"` // contains filtered or unexported fields }
func (*Debug) WithDetail ¶ added in v0.1.2
func (*Debug) WithDetailFormat ¶ added in v1.4.4
func (*Debug) WithErrMsg ¶ added in v1.4.12
func (*Debug) WithModule ¶ added in v1.20.13
func (*Debug) WithMoreFormat ¶ added in v1.4.4
Click to show internal directories.
Click to hide internal directories.