Documentation ¶
Overview ¶
FIXME: golangci-lint nolint:errcheck,govet,revive
Index ¶
- type EdgeListener
- func (l EdgeListener) OnCount(name string, enabled bool)
- func (l EdgeListener) OnError(err error)
- func (l EdgeListener) OnReady()
- func (l EdgeListener) OnRegistered(payload unleashclient.ClientData)
- func (l EdgeListener) OnSent(payload unleashclient.MetricsData)
- func (l EdgeListener) OnWarning(warning error)
- type FakeUnleashServer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EdgeListener ¶
type EdgeListener struct{}
nolint:revive // EdgeListener is an implementation of all of the listener interfaces that simply logs debug info to stdout. It is meant for logging purposes.
func (EdgeListener) OnCount ¶
func (l EdgeListener) OnCount(name string, enabled bool)
OnCount prints to the console when the feature is queried. This is done every 5 seconds, too much for edge-api
func (EdgeListener) OnReady ¶
func (l EdgeListener) OnReady()
OnReady prints to the console when the repository is ready.
func (EdgeListener) OnRegistered ¶
func (l EdgeListener) OnRegistered(payload unleashclient.ClientData)
OnRegistered prints to the console when the client has registered.
func (EdgeListener) OnSent ¶
func (l EdgeListener) OnSent(payload unleashclient.MetricsData)
OnSent prints to the console when the server has uploaded metrics. This is done on every request, too much for edge-api
func (EdgeListener) OnWarning ¶
func (l EdgeListener) OnWarning(warning error)
OnWarning prints out warning.
type FakeUnleashServer ¶
FakeUnleashServer is the server object
func NewFakeUnleash ¶
func NewFakeUnleash() *FakeUnleashServer
NewFakeUnleash is the init function for the fake server
func (*FakeUnleashServer) Disable ¶
func (f *FakeUnleashServer) Disable(feature string)
Disable turns off a passed feature
func (*FakeUnleashServer) DisableAll ¶
func (f *FakeUnleashServer) DisableAll()
DisableAll turns off all features
func (*FakeUnleashServer) Enable ¶
func (f *FakeUnleashServer) Enable(feature string)
Enable turns on a passed feature
func (*FakeUnleashServer) EnableAll ¶
func (f *FakeUnleashServer) EnableAll()
EnableAll turns on all features
func (*FakeUnleashServer) IsEnabled ¶
func (f *FakeUnleashServer) IsEnabled(feature string) bool
IsEnabled returns a bool of if a feature is enabled or not
func (*FakeUnleashServer) URL ¶
func (f *FakeUnleashServer) URL() string
URL returns the given fake URL