Documentation ¶
Index ¶
- type DebugListener
- func (l DebugListener) OnCount(name string, enabled bool)
- func (l DebugListener) OnError(err error)
- func (l DebugListener) OnReady()
- func (l DebugListener) OnRegistered(payload unleash.ClientData)
- func (l DebugListener) OnSent(payload unleash.MetricsData)
- func (l DebugListener) OnWarning(warning error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DebugListener ¶
type DebugListener struct {
Verbose bool
}
DebugListener is an implementation of all the listener interfaces that simply logs debug info. It is meant for debugging purposes and an example of implementing the listener interfaces.
func (DebugListener) OnCount ¶
func (l DebugListener) OnCount(name string, enabled bool)
OnCount prints to the console when the feature is queried.
func (DebugListener) OnReady ¶
func (l DebugListener) OnReady()
OnReady prints to the console when the repository is ready.
func (DebugListener) OnRegistered ¶
func (l DebugListener) OnRegistered(payload unleash.ClientData)
OnRegistered prints to the console when the client has registered.
func (DebugListener) OnSent ¶
func (l DebugListener) OnSent(payload unleash.MetricsData)
OnSent prints to the console when the server has uploaded metrics.
func (DebugListener) OnWarning ¶
func (l DebugListener) OnWarning(warning error)
OnWarning prints out warning.
Click to show internal directories.
Click to hide internal directories.