Documentation ¶
Index ¶
- type KeyPressReader
- type PprofUtils
- func (p *PprofUtils) DumpDebugPProf() error
- func (p *PprofUtils) GetErrorChannel() chan error
- func (p *PprofUtils) SetLogger(log logger.LoggerInterface)
- func (p *PprofUtils) StartPprof(certPath string, keyPath string) chan error
- func (p *PprofUtils) StartServerWithShutdown(addr string, certPath string, keyPath string, reader KeyPressReader) chan error
- type RealKeyPressReader
- type Server
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KeyPressReader ¶
type KeyPressReader interface {
WaitForKeyPress() byte
}
type PprofUtils ¶
type PprofUtils struct { Log logger.LoggerInterface ErrCh chan error // shared error channel Server Server SecretToken string PprofPort string BaseURL string EnablePprof bool // contains filtered or unexported fields }
func NewPprofUtils ¶
func NewPprofUtils(enablePprof bool, pprofPort string, secretToken string, baseURL string, log logger.LoggerInterface, errCh chan error) *PprofUtils
func (*PprofUtils) DumpDebugPProf ¶
func (p *PprofUtils) DumpDebugPProf() error
func (*PprofUtils) GetErrorChannel ¶
func (p *PprofUtils) GetErrorChannel() chan error
func (*PprofUtils) SetLogger ¶
func (p *PprofUtils) SetLogger(log logger.LoggerInterface)
func (*PprofUtils) StartPprof ¶
func (p *PprofUtils) StartPprof(certPath string, keyPath string) chan error
func (*PprofUtils) StartServerWithShutdown ¶
func (p *PprofUtils) StartServerWithShutdown(addr string, certPath string, keyPath string, reader KeyPressReader) chan error
type RealKeyPressReader ¶
type RealKeyPressReader struct{}
func (*RealKeyPressReader) WaitForKeyPress ¶
func (r *RealKeyPressReader) WaitForKeyPress() byte
Click to show internal directories.
Click to hide internal directories.