Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TimerCache ¶
type TimerCache[T any] struct { Refresh func() T // contains filtered or unexported fields }
func (*TimerCache[T]) GetData ¶
func (h *TimerCache[T]) GetData() *T
func (*TimerCache[T]) GetInterval ¶
func (h *TimerCache[T]) GetInterval() time.Duration
func (*TimerCache[T]) GetOnce ¶
func (h *TimerCache[T]) GetOnce() bool
func (*TimerCache[T]) Start ¶
func (h *TimerCache[T]) Start()
func (*TimerCache[T]) Stop ¶
func (h *TimerCache[T]) Stop()
func (*TimerCache[T]) TryGetData ¶
func (h *TimerCache[T]) TryGetData(timeout time.Duration) *T
func (*TimerCache[T]) Update ¶
func (h *TimerCache[T]) Update()
Click to show internal directories.
Click to hide internal directories.