loopstart

package
v0.0.0-...-e4898a9 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2024 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Observer

type Observer interface {
	Refresh()
}

Observer interface is used to store object that needed to be refreshed in each CA loop. It returns error and a bool value whether the loop should be skipped.

type ObserversList

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

ObserversList interface is used to store objects that needed to be refreshed in each CA loop.

func NewObserversList

func NewObserversList(observers []Observer) *ObserversList

NewObserversList return new ObserversList.

func (*ObserversList) Refresh

func (l *ObserversList) Refresh()

Refresh refresh observers each CA loop.

Jump to

Keyboard shortcuts

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