Documentation
¶
Overview ¶
Package notification dispatches the flag change notifications to the configured notifiers.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service interface {
Close()
Notify(oldCache, newCache map[string]flagdef.Flag, log *slog.Logger)
}
Service dispatches flag change notifications to the notifiers.
type ServiceImpl ¶ added in v0.2.0
ServiceImpl is the default Service implementation.
func NewService ¶
func NewService(notifiers []notifier.Notifier) *ServiceImpl
NewService returns a notification service that sends flag changes to the notifiers.
func (*ServiceImpl) Close ¶ added in v0.2.0
func (c *ServiceImpl) Close()
Close stops the notification service.