Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Info ¶
Info gathers debugging information and stores everything in a buffer in order to write it to somewhere later. It directly inherits a bytes.Buffer, so you can also use all these functions too.
func (*Info) AddGoroutineStack ¶
func (di *Info) AddGoroutineStack()
AddGoroutineStack adds the current goroutine stack.
func (*Info) AddLastReportedModuleError ¶
func (di *Info) AddLastReportedModuleError()
AddLastReportedModuleError adds the last reported module error, if one exists.
func (*Info) AddLastUnexpectedLogs ¶
func (di *Info) AddLastUnexpectedLogs()
AddLastUnexpectedLogs adds the last 10 unexpected log lines, if any.
func (*Info) AddPlatformInfo ¶
AddPlatformInfo adds OS and platform information.
func (*Info) AddSection ¶
AddSection adds a debug section to the Info. The result is directly written into the buffer.
func (*Info) AddVersionInfo ¶
func (di *Info) AddVersionInfo()
AddVersionInfo adds version information from the info pkg.
Click to show internal directories.
Click to hide internal directories.