ticker

package
v1.3.0-alpha.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 10, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package ticker reintroduces the ticker concept. It contains a ticker implementation that is fully interacted through pubsub. It starts turned off by default and is run after dispatcher starts.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ResyncTicker

type ResyncTicker struct {
	// contains filtered or unexported fields
}

ResyncTicker is the type that implements a ticker to trigger internal system resyncs periodicially based on the configuration specified in the MeshConfig resource.

func NewResyncTicker

func NewResyncTicker(msgBroker *messaging.Broker, minTickInterval time.Duration) *ResyncTicker

NewResyncTicker returns a ResyncTicker instance that is used to periodically trigger proxy config resyncs.

func (*ResyncTicker) Start

func (r *ResyncTicker) Start(quit <-chan struct{}, resyncInterval time.Duration)

Start starts the ResyncTicker's configuration watcher in a goroutine which runs until the given channel is closed.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL