Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type NotifyWatchable ¶
type NotifyWatchable interface { Watchable Notify() <-chan struct{} }
A NotifyWatchable is a Watchable with a channel to receive updates whenever the data changes.
func NewNotifyWatchable ¶
func NewNotifyWatchable(ctx context.Context, w Watchable) NotifyWatchable
NewNotifyWatchable returns a NotifyWatchable wrapping another Watchable.
type ReadyWatchable ¶
type ReadyWatchable interface { Watchable WaitForInit() <-chan struct{} }
A ReadyWatchable is a Watchable that exposes a method to let you know when it has the initial complete view of the data.
func NewReadyWatchable ¶
func NewReadyWatchable(w Watchable) ReadyWatchable
NewReadyWatchable wraps a Watchable with a WaitForInit method.
Click to show internal directories.
Click to hide internal directories.