Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommonVariable ¶
type CommonVariable interface { Value() interface{} Name() string Prefix() string FullName() string Rename(string) }
CommonVariable is base interface for all variables.
type Registry ¶
type Registry interface { Float(name string) SyncVariable[float64] Bool(name string) SyncVariable[bool] String(name string) SyncVariable[string] Dump() map[string]interface{} GetAll() []CommonVariable }
type SyncVariable ¶
type SyncVariable[T comparable] interface { Variable[T] // Sync keep value sync with internal value. Sync(*T) Unsync(*T) }
func NewSyncVariable ¶
func NewSyncVariable[T comparable](name string) SyncVariable[T]
type Variable ¶
type Variable[T comparable] interface { OnChange(func(T)) event.Subscriber Repeat() // contains filtered or unexported methods }
func NewVariable ¶
func NewVariable[T comparable](name string) Variable[T]
Click to show internal directories.
Click to hide internal directories.